To get the timezone offset:
You can use the function getTimezoneOffset()
which returns your timezone offset in minutes:
var dateString = "2014-01-22T09:44:06";
var myDate = new Date(Date.parse(dateString));
console.log(myDate);
console.log(myDate.getTimezoneOffset());
In your case this will output 240
http://www.w3schools.com/jsref/jsref_gettimezoneoffset.asp
To get the UTC dateTime you can use following functions:
getUTCDate() Returns the day of the month, according to universal time (from 1-31)
getUTCDay() Returns the day of the week, according to universal time (from 0-6)
getUTCFullYear() Returns the year, according to universal time (four digits)
getUTCHours() Returns the hour, according to universal time (from 0-23)
getUTCMilliseconds() Returns the milliseconds, according to universal time (from 0-999)
getUTCMinutes() Returns the minutes, according to universal time (from 0-59)
getUTCMonth() Returns the month, according to universal time (from 0-11)
getUTCSeconds() Returns the seconds, according to universal time (from 0-59)
toUTCString() Converts a Date object to a string, according to universal time
In your case you can use simply the toUTCString()
function:
var dateString = "2014-01-22T09:44:06";
var myDate = new Date(Date.parse(dateString));
console.log(myDate);
console.log(myDate.toUTCString());
console.log(myDate.getTimezoneOffset());