Skip to content

Instantly share code, notes, and snippets.

@mio-U-M
Last active May 13, 2020 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mio-U-M/c43d69e86e4b3cd1d8d67ae5dd3990af to your computer and use it in GitHub Desktop.
Save mio-U-M/c43d69e86e4b3cd1d8d67ae5dd3990af to your computer and use it in GitHub Desktop.
日付を分割して返却する
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