Angularjs: timestamp for formatting UTC time with date helper

I'm looking for an idea on how to format a unix timestamp using an AngularJS date helper?

In the official documentation there is only an explanation of the string inputs (if the time input is not indicated in the string input, the time is considered in the local time zone), but what about the time stamp? Any hint?

+11
javascript date angularjs datetime
Dec 09 '13 at 12:01
source share
1 answer

I found some solution with custom filter and momentjs library:

app.filter('moment', function() { return function(input, format) { return moment(parseInt(input)).utc().format(format); }; }); 
+6
Feb 13 '14 at 16:42
source share
— -



All Articles