note 114126 deleted from function.date by sobak

From: Date: Thu, 01 Dec 2016 13:46:21 +0000
Subject: note 114126 deleted from function.date by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-207852@lists.php.net to get a copy of this message
Note Submitter: Jacques Marais ---- If you want to print something like: Tuesday, the 14th of January, 2014 Use this: <?php echo date("l", strtotime("now")).', the'.date(" jS", strtotime("now")).' of'.date(" F, Y", strtotime("now")); ?> This is because you cannot use words in the date string. If you use words in the date string it will be seen as a format character So if you use: <?php echo date("l, the jS of F, Y", strtotime("now")); ?> It will print something like: Tuesday, 3108Europe/Berlin 14th 2014f January, 2014

« previous php.notes (#207852) next »