1

With some help from some fellow stack users, I currently have this:

http://jsfiddle.net/wZETP/

The JSON data gives me the {start.date} in YYYY-MM-DD formatting, but I would like to know how to implement a date change to:

Mon 01 Jan

4

1 回答 1

1

Convert your date string "2012-05-29" to Date object:

var parts = date.split("-");
var d = new Date(parts[0], parts[1], parts[2]);

Then use dateFormat from here:

return d.format("ddd dd mmm");

Working fiddle

于 2012-04-29T00:57:49.210 回答