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.
我想知道如何使用 javascript/jquery 将时间转换为“08:14PM 2013 年 1 月 5 日”格式。提前致谢。
要将月份作为 3 个字母的字符串,请使用
date.toDateString().split(' ')[1];