How to Set Date Formats

The $szDateFormat string in the pp_config.pl sets the format for how dates are displayed
in the various reports. Possible values, and typical results are shown below:

 

"%d %b %Y" = 04 May 2005

'%e/%c/%Y' = 21/5/2005

'%c/%e/%Y' = 5/21/2005

'%d/%m/%Y' = 21/05/2005

'%m/%d/%Y' = 05/21/2005

'%D %b %Y' = 21st May 2005

‘%b %e %Y' = May 21 2005

The meaning of the percent codes is as follows:

Specifier Description
%a Abbreviated weekday name (Sun..Sat)
%b Abbreviated month name (Jan..Dec)
%c Month, numeric (0..12)
%D Day of the month with English suffix (0th, 1st, 2nd, 3rd, ...)
%d Day of the month, numeric (00..31)
%e Day of the month, numeric (0..31)
%j Day of year (001..366)
%M Month name (January..December)
%m Month, numeric (00..12)
%p AM or PM
%Y Year, numeric, four digits
%y Year, numeric, two digits
%% A literal '%'.