javascript - Ext.js - Format TimeStamp into yyyy-mm-dd hh:mm:ss[.fffffffff] -
i have timestamp value:
var timestamp = 1469088703280;
i have tried convert timestamp format yyyy-mm-dd hh:mm:ss[.fffffffff]
.
var timestampdate = new date(timestamp * 1000); ext.date.format(timestampdate ,'yyyy-mm-dd hh:mm:ss')
however, method produces value:
52525252-temtem-2727 1414:0707:4444
any ideas on how achieve required format?
i see have asked decimal fraction of seconds can use below snippet.
var timestamp = new date(new date()); ext.date.format(timestamp ,'y-m-d h:i:s.u'); "2016-07-28 14:03:26.711"
refer ext js docs more closely can configuration wish , wont have elsewhere.
Comments
Post a Comment