>Hello friends,
>
>I would like to ask whether there is a way (function or something) which can determine that a specific string contains a valid date for instance :
>isvaliddate("20011101") would return .t.
>
>Thank you
>Dimitris
Your string looks like to be in YYYYMMDD format.
function IsValidDate
lparameters tcString
return !empty(ctod(trans(tcString,'@R ^9999/99/99')))
Cetin