note 82908 deleted from function.strtotime by danbrown
| From: | danbrown@php.net | Date: | Sun, 20 Jul 2008 03:58:07 +0000 |
| Subject: | note 82908 deleted from function.strtotime by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142098@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
Previous commenter worte:
"
Get the first day of the month:
<?php
$time = time();
echo date('m/d/Y', strtotime('1 '.date('F', $time).'
'.date('Y', $time)));
?>
"
Or just:
date('m/01/Y')
every month begins with a 1st ;)