I need to display a date formatted as a UTC date, and I should do this with Datejs. Is this possible?
I need to do something like
var d = new Date();
var dateString = d.toString("d \n MMM/yyyy \n H:mm:ss");
...but with date and time formatted as UTC.
I looked at the docs but the closest thing I found is
d.toISOString();
which gives me a date as a UTC string but not in the format I want.
edit: changed toUTCSTring to toISOString