For these examples, date is set to Sat, 07 Jul 2007 14:07:07 GMT using
- 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
- the day of the month according to UTC time as a number from 1 to 31 according to UTC time
- the day of the week according to UTC time as a number from 0 to 6 where 0 represents Sunday and 6 represents Saturday
- returns the four digit year according to UTC time
- hour of the day on a 24 hour clock according to UTC time(0 to 23)
- minutes after the hour according to UTC time(0 to 59)
- seconds of the minute according to UTC time(0 to 59)
- millionths of a second according to UTC time(0 to 999)
This site needs an editor - click to learn more!
You Should Also Read:
Introduction To UTC Dates
Getting Dates In Local Time
Editor's Picks Articles
Top Ten Articles
Content copyright © 2019 by Julie L Baumler. All rights reserved.
This content was written by Julie L Baumler. If you wish to use this content in any manner, you need written permission. Contact BellaOnline Administration for details.