If you need to find the location, you can use HTML5 geolocation, otherwise the new date wll will return a Date object
You can do this with either .toISOSTring() or with .toUTCString().
(function(){ var a = new Date();
WORKING MODEL
EDIT
You can also find the function to return the result in UTC format.
function convertDateToUTC(date) { return new Date(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate(), date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds()); }
WORKING MODEL 2
source share