在javascript中格式化日期直到毫秒 [英] Formatting a date in javascript till the millisecond
本文介绍了在javascript中格式化日期直到毫秒的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们正在使用Microsoft提供的以下js库 https://ajax.aspnetcdn.com/ajax/4.0/1/MicrosoftAjax.js
We are using the following js lib from Microsoft https://ajax.aspnetcdn.com/ajax/4.0/1/MicrosoftAjax.js
var datetimehigh = new Date(2011,01,12,14,45,55,596);
var sDate = datetimehigh.format("dd/MM/yyyy HH:mm:ss sss");
我无法使用毫秒部分.请注意,格式来自Microsoft的Mvc Ajax库.
I cannot get the millisecond part to work.Note that format comes from Microsoft's Mvc Ajax lib.
推荐答案
由 f 表示:
"dd/MM/yyyy HH:mm:ss fff"
这篇关于在javascript中格式化日期直到毫秒的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文