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
精彩评论