Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
16
rated 0 times [  20] [ 4]  / answers: 1 / hits: 35928  / 10 Years ago, thu, january 1, 2015, 12:00:00

In my database i am storing date in this format 2015-12-14 00:00:00(yy/mm/dd h:m:s).How can i convert this date into this format 14 dec 2015 in angularjs ?Here is the format of my angular data:



{{data.time_stamp}}

More From » angularjs

 Answers
108

Use Angular's built in filter for dates. https://docs.angularjs.org/api/ng/filter/date



{{ date_expression | date : format : shortDate}}

[#68332] Monday, December 29, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
parker

Total Points: 259
Total Questions: 109
Total Answers: 97

Location: Zambia
Member since Thu, Jun 25, 2020
4 Years ago
;