Sample code from Intro to UTC Dates at the JavaScript/Java site at BellaOnline.com
getUTCMonth()
a number representing the month according to UTC time, 0 for January, 1 for February, ... You can use this as a key to an array of month names or add one to the number to get a human readable month
EXAMPLE: luckyday.getUTCMonth()     
getUTCDate()
the day of the month as a number according to UTC time from 1 to 31
EXAMPLE: luckyday.getUTCDate()     
getUTCDay()
the day of the week according to UTC time as a number from 0 to 6 where 0 represents Sunday and 6 represents Saturday
EXAMPLE: luckyday.getUTCDay()     
getUTCFullYear()
returns the four digit year according to UTC time
EXAMPLE: luckyday.getUTCFullYear()     
getUTCHours()
hour of the day on a 24 hour clock according to UTC time (0 to 23)
EXAMPLE: luckyday.getUTCHours()     
getUTCMinutes()
minutes after the hour according to UTC time (0 to 59)
EXAMPLE: luckyday.getUTCMinutes()     
getUTCSeconds()
seconds of the minute according to UTC time (0 to 59)
EXAMPLE: luckyday.getUTCSeconds()     
getUTCMilliseconds()
millionths of a second according to UTC time (0 to 999)
EXAMPLE: luckyday.getUTCMilliseconds()     


copyright 2007-2008 Julie L Baumler