views:

65

answers:

1

I want to get the current UTC date with Javascript. How can I do this? There seems to be methods for getting the time in UTC:

date.getUTCHours();

How can I get the date?

+4  A: 

There are UTC getters for date, day, full year, hour, minutes, month, etc. To get the date specifically, you might find getUTCDate useful.

Without seeing more of your code, I can only suggest this:

date.getUTCDate();
Zack Mulgrew
Oh, okay. That will work great.
George Edison