Quote:
Originally Posted by DanUK
How do I get the year to read:
05
06
07
08
09
etc rather than the 4 digit default?
|
You will need to experiment, but here's some tips to help you get started... just as we used "%m" for the 2-digit month (see above posts), you will need to use
"%y" for the 2-digit year (note: lower-case "y").
In the File: /main/register_ccinfo.tpl
You will probably need to specify the format, such as:
year_format="%y"
or
date_format="%y"
From the Smarty site:
%y - year as a decimal number without a century (range 00 to 99)
%Y - year as a decimal number including the century
Here's some Smarty links for more details:
http://smarty.php.net/manual/en/language.modifier.date.format.php
and
http://smarty.php.net/manual/en/language.function.html.select.date.php
Good luck and post your results here when you get a chance.
Robert