note 89282 deleted from function.strtotime by thiago
| From: | thiago@php.net | Date: | Sun, 01 Mar 2009 21:55:16 +0000 |
| Subject: | note 89282 deleted from function.strtotime by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-151300@lists.php.net to get a copy of this message | ||
Note Submitter: JK
----
To bbutts at stormcode dot net:
You didn't look very hard...
The following is reposted from an earlier entry on this page and is a much easier way of determining
the last day of the month using mktime.
-------------------
cp at dc949 dot org
21-Aug-2008 06:33
An easier way to find the first and last time stamp of any given month.
<?php
$dat = split(',', date('n,Y'));
$first = mktime(0,0,0,$dat[0],1,$dat[1]);
$last = mktime(23,59,59,$dat[0]+1,0,$dat[1]);
?>