Last active
May 13, 2020 10:27
-
-
Save mio-U-M/c43d69e86e4b3cd1d8d67ae5dd3990af to your computer and use it in GitHub Desktop.
日付を分割して返却する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getDate(d) { | |
const date = new Date(d) | |
return ( | |
date.getFullYear() + | |
'.' + | |
(date.getMonth() + 1) + | |
'.' + | |
date.getDate() + | |
' ' + | |
this.days[date.getDay()] | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment