a php date question
by "Michael Gerholdt" <gerholdt(at)fredonia.edu>
|
| Date: |
Sun, 31 Mar 2002 18:05:07 -0500 |
| To: |
"hwg-techniques" <hwg-techniques(at)hwg.org> |
| |
todo: View
Thread,
Original
|
|
Any one know why this:
<? $i = date("M",mktime(0,0,0,date("m")-1,date("d"),date("Y")));?>
usually returns last month, but not if it is, for example, the 31st of a
month ... in which case it returns the present month?
thanks,
Mike
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.