javascript - Angularjs display given ISO formatted date -



javascript - Angularjs display given ISO formatted date -

i'm looking way display/format date given in iso format (with timezone). api got encoded date: "2015-04-17t06:00:00.000-05:00" , want display in human readable format. when utilize {{"2015-04-17t06:00:00.000-05:00" date: 'hh:mm'}} got time converted local timezone. need format it.

a searched internet, found huge libs moments.js or others. there did not found working reply here also...

if there no angularjs solution can utilize pure javascript, not found 1 either.

thanks

you can set timezone yourself date filter:

(it accepts format strings "+0000" , simple integer strings "0")

{{"2015-04-17t06:00:00.000-05:00" | date:'hh:mm':'0' }}

javascript angularjs date datetime

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -