Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试转换当前看起来像的 UTC 日期<span class="enrolldate">2011-10-01 22:00:00</span>
<span class="enrolldate">2011-10-01 22:00:00</span>
只需使用 date.js 转换为 M/D/YYYY 日期格式。有人可以帮忙吗?谢谢!
从 date.js 的API中,您可以输出所需的格式:
Date.today().toString("M/d/yyyy"); // 11/19/2007