toLocaleFormat
toLocaleFormat
http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date
Non-standard
Converts a date to a string, using a format string.
これがNon-standardだなんて。もったいない。
指定できるフォーマットはstrftimeのもの。
strftime - 日付および時刻の文字列への変換
http://www.linux.or.jp/JM/html/LDP_man-pages/man3/strftime.3.html
使用例
new Date().toLocaleFormat("%Y年%m月%d日%a曜日%H時%M分%S秒")
と思ったら、文字化けして使えなかった…。