Re: easiest way to get 1st and last dates of the month?
| From: | Justin French | Date: | Tue, 03 Dec 2002 06:11:10 +0000 |
| Subject: | Re: easiest way to get 1st and last dates of the month? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126817@lists.php.net to get a copy of this message | ||
Thanks for pointing out the obvious !!! -- it's been a long day!
Justin
on 03/12/02 4:52 PM, rija (rija@vatu.com) wrote:
> How about date("t") ?
> It's supposed return the last day of a month (28 - 31).
>
> ----- Original Message -----
> From: "Justin French" <justin@indent.com.au>
> To: "php" <php-general@lists.php.net>
> Sent: Tuesday, December 03, 2002 4:31 PM
> Subject: [PHP] easiest way to get 1st and last dates of the month?
>
>
>> Hi,
>>
>> I'm looking to get a unix timestamp for the first and last day of a month,
>> given a timestamp.
>>
>> But so far everything i've come up with has been waaaay too many lines of
>> trickery -- especially for the last day of the month (which isn't always
> 31)
>>
>> Any ideas or snippets of code floating around?
>>
>>
>> Justin French
>> --------------------
>> http://Indent.com.au
>> Web Development &
>> Graphic Design
>> --------------------
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
>
Justin French
--------------------
http://Indent.com.au
Web Development &
Graphic Design
--------------------