Thanks for pointing out the obvious !!! -- it's been a long day! Justin
on 03/12/02 4:52 PM, rija ([EMAIL PROTECTED]) wrote: > How about date("t") ? > It's supposed return the last day of a month (28 - 31). > > ----- Original Message ----- > From: "Justin French" <[EMAIL PROTECTED]> > To: "php" <[EMAIL PROTECTED]> > 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 -------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php