Skip to content

Instantly share code, notes, and snippets.

@kambara

kambara/gist:1516989

Created Dec 24, 2011
Embed
What would you like to do?
JavaScript: DateTimeで 2011/1/25 10:02:30 みたいに日付表示
[[date.getYear(),
date.getMonth(),
date.getDate(),
].join('/'),
[date.getHours(),
date.getMinutes(),
date.getSeconds()
].join(':')
].join(' ');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment