Date Validation Function
Posted on 2004-04-06
I am writing a database program in C. A situation arised where I wanted to validae the startdate and enddate. I am accepting the date in format(dd/mm/yyyy).
Can anyone get me a date validation function in C which does the following things
1. Check if the date is in correct format(dd/mm/yyyy)i.e; day shouldn't be > 31, month shouldn't be > 12 ........
2. Check for characters( characters should not be present)
3. Start date should be lesser than end date
A code snippet/useful weblinks will be very useful. as I am not that versed in string manipulation functions in C
Thanks in Advance