How can I change a date string to another date format in angularjs?
Lets say I get from DB a string in this format: "31/01/2015 2:21 PM".
I need to change it to "31-Jan-2015 14:21".
Thanks.
-
Possible duplicate of Changing date format javascriptDaniel Beck– Daniel Beck2016-09-07 20:00:37 +00:00Commented Sep 7, 2016 at 20:00
-
(Or stackoverflow.com/questions/1056728/… may be more canonical. There are literally hundreds of near-identical questions on this subject.)Daniel Beck– Daniel Beck2016-09-07 20:02:40 +00:00Commented Sep 7, 2016 at 20:02
Add a comment
|