View Single Post
  #16  
Old 01-04-2006, 03:44 AM
 
robertswww robertswww is offline
 

X-Adept
  
Join Date: Jul 2003
Posts: 586
 

Default

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
__________________
X-cart 4.1.10
Reply With Quote