开发者

trouble converting UTC date to M/D/YYYY with date.js

I am trying to co开发者_运维技巧nvert a UTC date that currently looks like <span class="enrolldate">2011-10-01 22:00:00</span>

simply to a M/D/YYYY date format with date.js. Can someone help? Thanks!


From the API for date.js, you can output the format you require with:

Date.today().toString("M/d/yyyy"); // 11/19/2007
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜