2013-04-05 71 views

回答

5

您還可以使用parseDate(...) :)之前解析格式。

dpg.parseDate(date_str, dpg.parseFormat(date_format)) 

我已更新您的fiddle

+0

非常感謝你,你@Arun之前贏(4S :) – 2013-04-05 13:42:07

1

則需要使用解析format第一parseFormat(format)

$('body').append($('<div />').text(dpg.parseDate(date_str, dpg.parseFormat(date_format)))); 

演示:Plunker