a = new Date();
Sun Apr 08 2012 16:58:03 GMT+0530 (IST)
Is there any way i can get the current UTC time? I thought of getting an offset doing maths:
b = a.getTimezoneOffset()
-330
then subtract, get the value:
c = a - b
1333884483552
but again getting c
as a
to look is difficult. So the question:
How can i get the current UTC time, in javascript?