Jump to content

PHP Giving Wrong Year?


Beasts

Recommended Posts

change o to Y

$timestamp = date("d/m/Y g:i:s A");
echo $timestamp ;

 

o  ISO-8601 year number. This has the same value as Y, except that if the ISO week number (W) belongs to the previous or next year, that year is used instead. (added in PHP 5.1.0)

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.