javascript - Convert a date to Date.now() like format in iavascript -
i need convert date "date.now()" format in javascript. eg. using date.now(), i'm getting value 1395150601449. need date formatted this. how can achieve ? create custom filter in angularjs formatting.
any highly appreciated.
call .gettime() function.
var d = new date(); console.log(d.gettime()); you can opposite passing such timestamp date constructor. thus, make copy of date instance:
var copy = new date( d.gettime() );
Comments
Post a Comment