Time formats for SSI output Web Designing

SSI provides a rich set of date and time formats that can be used with the timefmt attribute of the config command. To format the date, insert the code for the format, separated by commas as you intend it to display in the inserted text:

<!--#config timefmt="%A, %B %e, %Y" --> Good morning! It is now <!--#echo var="DATE_LOCAL" -->

This would result in the date and time displayed in this manner:

Good morning! It is now Friday, June 22, 2001

As you can see, %A specifies the full day name, %B specifies the full month name, etc. Commas placed within the list will display in the inserted date and time.Table provides the standard SSI time format codes and their meanings.

Table: SSI time formats

SSI time formatsSSI time formats


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Web Designing Topics