Try the following:
var date = new Date(2012, 12, 5, 18, 0, 0, 0); var date_utc = new Date(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate(), date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds()); The Date function can be used the following ways:
var d = new Date(); var d = new Date(milliseconds); var d = new Date(dateString); var d = new Date(year, month, day, hours, minutes, seconds, milliseconds); This was taken from a related post here: How to convert a Date to UTC?How to convert a Date to UTC?
To find out more, please refer to: https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date