|
Posted by Rik on 10/10/51 11:48
ivan wrote:
> Hello,
>
> just one small question concerning 'previous month':
>
> the function date ("m") gives me the current month.
>
> So, date("m")-1 returns the previous month.
>
> But, if the current month is "01", will this return "12" or "00" ?
1. If you want to post to several newsgroups, crosspost, don't multipost.
2. Answered in alt.php
3. If you're going to perform calculations with it, your string will be cast
to an integer, so you might as wel use date("n").
Grtz,
--
Rik Wasmus
Navigation:
[Reply to this message]
|