截止日期为07/15/2012 09:31:45 PM

Ash*_*Ash 1 jquery telerik

我需要一个上述日期的日期格式,我的代码是这样的

function formatDateTime(date) { return $.telerik.formatString('{0:dd/MM/yyyy hh:mm:ss}', date); }
Run Code Online (Sandbox Code Playgroud)

但它只显示07/15/2012 09:31:45,错过了AM和PM,但我需要AM和PM,任何人都可以帮忙吗?

谢谢,

Phi*_*hil 5

尝试

function formatDateTime(date) { return $.telerik.formatString('{0:dd/MM/yyyy hh:mm:ss tt}', date); 
Run Code Online (Sandbox Code Playgroud)