Hi Alan,
When date is set to LONG or SHORT VFP uses Windows API functions to do date manipulations. That's where {^1600-01-01} restriction comes from. My guess is that DTOS() still works in this case because it wasn't changed to use WIN API.
I cannot remember where I read explanation
>Very strange. For whatever reason, as you pointed out, with date set to short in VFP7, DTOC({01/01/1600}) resolves to an invalid date. Even doing this:
>
x = {01/01/1600}
>? x
>
>gives an invalid date on the second line.
>
>
BUT VFP7 has no problems at all with
>
? DTOS({01/01/1600})
>
>Some weird bug huh?
--sb--