user2085143 user2085143 - 5 months ago 40
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();