I'm looking for idea how to format unix timestamp with AngularJS date helper?
In official documentation, there is only explanation for string inputs (If no timezone is specified in the string input, the time is considered to be in the local timezone), but what about timestamp? Any hint?
I've found some solution with custom filter and momentjs library:
app.filter('moment', function() {
return function(input, format) {
return moment(parseInt(input)).utc().format(format);
};
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With