Does anybody know how I can test if a specific date is valid?
I use the following code to check the date but it does not seem to work correct. When I enter the 29th February 2000 ('29-02-2000') the function says it is an invalid date.
function IsDateOK (DateToTest: String): Boolean;
Result := True;
Result := False;
The function should also be able to check the date even if it is another date-order (DD-MM-YYYY or MM-DD-YYYY). Finally it should be able to check the date even if there are different date seperators.