Search billions of records on Ancestry.com
   

Server Side Includes (SSI)

Part Two
Spacer
Spacer Spacer
SSIs
SSI List
Time/Date Formats
 
Home
How to Get Listed
Other Resources

Time Formats

These SSI codes reformat the date and time that are returned by DATE_LOCAL, DATE_GMT, and LAST_MODIFIED. They can be used to change what is displayed when you ECHO these variables, or they can be used to extract parts of the time or date to test.

Time Format Result Description
(none) Wednesday, 09-Dec-2009 21:51:33 MST Default format
%a Wed Day of the week (Short form)
%A Wednesday Day of the week (Long form)
%b Dec Month (Short form)
%B December Month (Long form)
%c Wed Dec 9 21:51:33 2009 Weekday Month Day Time Year
%C 20 ?
%d 09 Day of the month
%D 12/09/09 MM/DD/YY
%e 9 Day of the month
%E %E (not used)
%f %f (not used)
%F 2009-12-09 YYYY-MM-DD
%g 09 Year (2 digit)
%G 2009 Year (4 digit)
%h Dec Use %b
%H 21 Hours (24 hour format)
%i %i (not used)
%I 09 Hours (12 hour format, 2 digit)
%j 343 Day of the year
%J %J (not used)
%k 21 Hours (12 hour format)
%K %K (not used)
%l 9 Hours (12 hour format)
%L %L (not used)
%m 12 Numerical month (2 digit)
%M 51 Minutes
%n ?
%N %N (not used)
%o %o (not used)
%O %O (not used)
%p PM AM | PM
%P pm am | pm
%q %q (not used)
%Q %Q (not used)
%r 09:51:33 PM HH:MM:SS AM|PM
%R 21:51 HH:MM (24 hour)
%s 1260420693 Time and date serial
%S 33 Seconds
%t ?
%T 21:51:33 HH:MM:SS (24 hour format)
%u 3 ?
%U 49 ?
%v %v (not used)
%V 50 ?
%w 3 ?
%W 49 Week of the year
%x 12/09/09 MM/DD/YY
%X 21:51:33 HH:MM:SS (24 hour format)
%y 09 Year (2 digit format)
%Y 2009 Year (4 digit format)
%z -0700 Hours offset from GMT
%Z MST Time zone

Spacer

Last Modified: 25 Jun 2000
Copyright © 2000 James C. Keebaugh
All Rights Reserved
Spacer