anyway could use a hand preparing for datediff. one date’s straight from MYSQL table in 2010-03-05 format. other I assemble from three pieces and it echos out as 201035.
so I thought mktime:
$calendar_date = date (“Y-m-d”, mktime(0,0,0,$year,$month,$i));
mktimes returns 1969-12-31 !! huh?
found something about “UNIX EPOCH” but still don’t get it.
ERRR… I spoke too soon. check out these results: you’re looking at days in a calendar.
1
2010-03-14
14
201031
2010-03-05
0 days diff
2
2010-03-08
7
201032
2010-03-05
0 days diff
3
2010-03-16
14
201033
2010-03-05
0 days diff
note that the result from STRTOTIME is stuck on 2010-03-05. but this seems impossible as it is constructed with the very same variable used to build the date displayed directly above it !!
here’s the code:
// the first line is of output (the 1, 2, & 3) is generated earlier