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

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -