user2085143 user2085143 - 23 days ago 5x
AngularJS Question

JavaScript Date Formating

I have a date string like so

'2016-06-16 00:00:00'

and would like to convert to this format


Is there a standard approach for doing this? Angular may also be used!


This is default javascript function to get date like this:

new Date().toISOString();