Error while checking date
Posted: Thu Aug 09, 2007 1:44 am
Hi All,
I am validating a date using isValid function,I am getting an error when the date is invalid.
The input date format is dd/mm/yyyy
The function used is IsValid("DATE", StringToDate(DSLink3.Date,"%dd/%mm/%yyyy")
Now if the date is 32/32/2008 or 00/00/0000 then it gives a warning
:"Conversion error calling conversion routine date_from_string data may have been lost"
Please suggest me why this warning is getting and how to validate if it is invalid.
Thanks in advance
Regards,
Rafidwh
I am validating a date using isValid function,I am getting an error when the date is invalid.
The input date format is dd/mm/yyyy
The function used is IsValid("DATE", StringToDate(DSLink3.Date,"%dd/%mm/%yyyy")
Now if the date is 32/32/2008 or 00/00/0000 then it gives a warning
:"Conversion error calling conversion routine date_from_string data may have been lost"
Please suggest me why this warning is getting and how to validate if it is invalid.
Thanks in advance
Regards,
Rafidwh