Verifying date Strings

admin

Administrator
Staff member
Is there any way simpler than doing a string check?

I'm doing a submit statement, that may, or may not be the time that we want recorded.

Eg...
Cols:
Updated BY:
Update to:
When was update done?:
Is is complete?:

In MySQL, I have the field set as Date (YYYY-MM-DD HH:mm:ss) and using PHP as a web interface.. so I get straight TEXT input from the form... Can I verifiy this? I really don't want to do IF thens to verify the date, and Datestamps still scre me a bit...

TIA.

dwarf
 
Back
Top