Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {{data.timestamp | date: "yyyy-MM-dd HH:mm:ss Z" : UTC}}
- $filter('date')(data.timestamp,'yyyy-MM-dd HH:mm:ss Z', UTC);
- .filter('newDate', [function() {
- return function(date) {
- //date format;
- return date.getDate() + '-' + (+date.getMonth() + 1) + '-' + date.getFullYear();
- };
- }])
- //time = new Date;
- {{time | newDate}}
- 3-9-2015
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement