[Solved]: Date format? [Solved]: Date format?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Solved]: Date format?

Started by cdenfert, August 17, 2004, 06:06:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cdenfert

Is it possible to change the date format?

(like dd/mm/yyyy)

thanks

Nibbler

All defined in your language file eg. /lang/english.php under:

// The various date formats

Joachim Müller

yes, edit lang/yourlanguage.php (e.g. english.php) and find// The various date formats
// See http://www.php.net/manual/en/function.strftime.php to define the variable below
$album_date_fmt =    '%B %d, %Y';
$lastcom_date_fmt =  '%m/%d/%y at %H:%M'; //cpg1.3.0
$lastup_date_fmt = '%B %d, %Y';
$register_date_fmt = '%B %d, %Y';
$lasthit_date_fmt = '%B %d, %Y at %I:%M %p'; //cpg1.3.0
$comment_date_fmt =  '%B %d, %Y at %I:%M %p'; //cpg1.3.0
Edit accordingly. Refer to the link given (PHP manual) to find out more about date and time formats.

GauGau

cdenfert