Hi,
I am having the following problem.
I used to be able to set a date filter in my recordsets to display events only from a certian date, no problem.
But i was dealing with a database that had a "date filed": eve_date that would clearly register the date of the event in a "computarised manner" such as:
20050302 for 2005 03 02
so, the following would work well:
WHERE (TO_DAYS[(eve_date)] - TO_DAYS(NOW()) < 0)
ORDER BY eve_date DESC
I'm dealing with a database here where the date is split in 3 disctinct fields:
$year
$month
$day
I cant really change the database structure, it would have too big implications, but i need to set a similar date filter on some pages.
I am just completely stuck on how this could be done as to compiling these 3 fields into one "eveor even better, use the
WHERE (TO_DAYS[(year month day)] - TO_DAYS(NOW()) < 0)
ORDER BY year month day DESC
kind of thing.
Can you help?
Many thanks,
Vinny