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
Post a Comment