Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2015
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. {{data.timestamp | date: "yyyy-MM-dd HH:mm:ss Z" : UTC}}
  2.  
  3. $filter('date')(data.timestamp,'yyyy-MM-dd HH:mm:ss Z', UTC);
  4.  
  5. .filter('newDate', [function() {
  6. return function(date) {
  7. //date format;
  8. return date.getDate() + '-' + (+date.getMonth() + 1) + '-' + date.getFullYear();
  9. };
  10. }])
  11.  
  12. //time = new Date;
  13. {{time | newDate}}
  14.  
  15. 3-9-2015
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement