Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
何人かの仲間のスタックユーザーの助けを借りて、私は現在これを持っています:
http://jsfiddle.net/wZETP/
JSON データは、YYYY-MM-DD 形式の {start.date} を提供しますが、日付変更を次のように実装する方法を知りたいです。
1月1日(月)
日付文字列"2012-05-29"を Date オブジェクトに変換します。
"2012-05-29"
var parts = date.split("-"); var d = new Date(parts[0], parts[1], parts[2]);
次に、ここから dateFormat を使用します。
return d.format("ddd dd mmm");
働くフィドル