Hi.
Using a form with dates entered as <SELECTS>.
The first is for the Date with values from 1 to 31.
The second is for the Month with values from 1 to 12 (labels are January, February, etc)
The third is for the year with values from 1900 to 2099.
I want to check the dates in an easier way than working out leap years and stuff.
I join the bits together so they are stored as CCYYMMDD.
Ideally I want something like ...
if (constructed_date != convertdatetostring(convertstringtodate(constructed_date)) {
date_error(); }
Any suggestions?
Initially I was going to use timestamps, but they don't work before 1970. (What's that all about?). Is there a proper date type in PHP?
Regards,
Richard Quadling.