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.
我需要上述日期的日期格式,我的代码是这样的
function formatDateTime(date) { return $.telerik.formatString('{0:dd/MM/yyyy hh:mm:ss}', date); }
但它只显示 07/15/2012 09:31:45,错过了上午和下午,但我需要上午和下午,有人可以帮忙吗?
谢谢,
尝试
function formatDateTime(date) { return $.telerik.formatString('{0:dd/MM/yyyy hh:mm:ss tt}', date);