开发者

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

开发者 https://www.devze.com 2023-04-11 16:15 出处:网络
I am trying to co开发者_运维技巧nvert a UTC date that currently looks like <span class=\"enrolldate\">2011-10-01 22:00:00</span>

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

精彩评论

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

关注公众号