user2085143 user2085143 - 1 year ago 113
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!

Answer Source

This is default javascript function to get date like this:

new Date().toISOString();
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download