I need to output the current UTC datetime as a string with the following format: YYYY/mm/dd hh:m:sec
YYYY/mm/dd hh:m:sec
How do I achieve that with Javascript?
With jQuery date format :
$.format.date(new Date(), 'yyyy/MM/dd HH:mm:ss');
https://github.com/phstc/jquery-dateFormat
Enjoy