Basic display of Date and Time
Use this to change what your Date/Time will look like:
Use this to change what your Date/Time will look like:
Code :
// hide source code
// hide line numbers
// hide source code
// hide line numbers
1
2 A Uppercase 12hr time syntax ie. PM
3 a Lowercase 12hr time syntax ie. pm
4 D Day ie. Fri
5 d Day ie. 03
6 F Full Text Month ie. January
7 G Hours in 24 hour format without leading zeros ie. 17
8 g Hours in 12 hour format without leading zeros ie. 7
9 H Hours in 24 hour format with leading zeros ie. 17
10 h Hours in 12 hour format with leading zeros ie. 07
11 i Minutes ie. 29
12 M Month ie. Jan
13 m Month ie. 01
14 O GMT time difference in hours ie. +0100
15 S Day of month suffix ie. st, nd, rd, or th.
16 s Seconds ie. 37
17 T Timezone setting ie. GMT, PST, EST, etc
18 t Total number of days in the month ie. 28, 31, etc.
19 U Seconds since the UNIX epoch ie. 1041604168
20 W Week number in year ie. 42 (42nd week in the year)
21 w Numeric representation of the day ie. 1 = monday, 2 = tuesday, etc.
22 Y Year ie. 2003
23 y Year ie. 03
24 z Day of the year ie. 002
Donation:If you like our free quality work, make a donation by using Paypal and tell us what you would like to see improved on our site for the next few months. |
|
TikiMan02
Comment #1697 posted on 06-07-2005 01:41
Thank you, very helpful, cause I can't be bothered to remember what all the letters mean 


























