>While you already got a satisfactory answer, may I suggest you forget about ctod()? At least if you use VFP 6 or later, it is safer to create dates with date(nYear, nMonth, nDay).
>
>If, OTOH, you are still forced to use VFP 5 (or earlier), ctod() seems to be the only viable option.
>
>Hilmar.
Hi Hilmar,
It's actually not for me. Our convertors receive data in lots of different formats. They know some basic VFP, so they use ctod function to convert characters to date. They noticed this problem (I don't know, how many towns this problem already affected) and asked for my help (BTW, Conversion is an application by my colleague). I thought, that set century in form's load would be the simplest answer and they don't have to change anything...
BTW, did you see the thread, I posted few minutes ago, 'what's wrong in the code?'. Could you check, please?
If it's not broken, fix it until it is.
My Blog