Perlaccess : Tutorials : File and Directory
Date & Time Customization (10.7)
by Jacob A. Wheeler
http://www.bigresources.com

Sometimes you may need to customize the format of the date or time, to fit your page. And using the #config directive, we can do just that!

Date Variables
%m = Month
%d = Day
%Y = Year
Time Variables
%H = Hour
%M = Minute
%S = Second
Looks like: 10/16/2006
Code:
<!--#config timefmt="%m/%d/%Y" --><!--#echo var="DATE_LOCAL" -->

An example using the time:

Looks like: 02:10:19
Code:
<!--#config timefmt="%H:%M:%S" --><!--#echo var="DATE_LOCAL" -->


Main Index

<< Back