Hi guys
I'm having a hard time trying to validate some dates.
I have a form that accept dates from users in this format (YYYY-mm-dd).
I've been looking at the available datetime functions and I'm still
clueless as to how they can help me achieve my goals.
what I need to do id check is:
1- convert the input string into date first. At this point I couldn't
find any srtTOdate type of functions. then I tried doing it the hard
way...by using "checkdate" function. I could split the string fine
(using "explode") but then I was stuck because I couldn't find any
function to convert a string into Integer!
2- I need to check if the date is valid
Could somebody please help me out?
Thanks