Posted by Feudalac! on 10/13/05 17:36
i have a function that detects witch day is the first of the month
by makeing a date
$firstofthemonth=time()-(date('d')-1)*24*60*60;
$firstday= date('D',$firstofthemonth);
my question is:
how do i create a date if i don't know the today date?
with $_GET i read the date that i need - yyyymmdd
now i want to findout which day is the first of THAT month?
eg. if variable supplayd is 20050813?
i then break that down to
day=13
month=08
year=2005
how can i findout which day is the 1st?
thanks
[Back to original message]
|