In date-fns library I do this
var from = new Date();
format(from, "MMMM d, yyyy");
However this gives me the localized value similarly as to if I did new Date().toString()
. I am looking for the equivalent of new Date().toUTCString()
. How can I format in date-fns to UTC string?