Echo - Intro << Echo - Date & Time >> Echo - Last Modified
To display the current date and time on your page, the following SSI code is used :

<!--#echo var="DATE_LOCAL" -->

Rather long and drawn out result isn't it? No problem, there is an SSI command that will format it to your specs. This SSI code line goes just before the DATE_LOCAL one...

<!--#config timefmt="value" -->

This will "Configure the next SSI code into time format of this value". There are many different values to enter to get the info you want to show...

%aabbreviated weekday name
%Afull weekday name
%babbreviated month name
%Bfull month name
%Cdefault date and time format
%dday of month - 01 to 31
%Ddate as %m/%d/%y
%eday of month - 1 to 31
%Hhour - 00 to 23
%Ihour - 01 to 12
%jday of year - 001 to 366
%mmonth of year - 01 to 12
%Mminute - 00 to 59
%pstring containing AM or PM
%rtime as %I:%M:%S %p
%Rtime as %H:%M
%Ssecond - 00 to 59
%Ttime as %H:%M:%S
%yyear within century - 00 to 99
%Yyear as CCYY (4 digits)
%Ztimezone name

The slashes, colons, spaces and commas in the timefmt value will be reflected in the resulting answer. They are considered as normal text. The % indicates the next letter represents part of the SSI date string.

Note : spacing is very crucial to having SSI work correctly. There is a space before the ending comment tag. There is also a space between the config SSI and the echo SSI commands.

Some results will vary depending on the server hosting your web page. These are based on the date and time where the host server is located, not yourself. In some cases though, it may turn out your host server is in the same timezone :)
Echo - Intro << Echo - Date & Time >> Echo - Last Modified

Advertise in the banner along the top, Click here!

Valid XHTML 1.0 Transitional Valid CSS! Text Link Ads