>There was another program I came across where (after DTOS() was available, I'm pretty sure), the programmer made an index on SUBSTR( DTOC(), ...) such that they ended up with YYMMDD on purpose. Obviously NOT Y2K compliant. (There was so much wrong with that program ... but I was only allowed to change things which were specifically Y2K bugs.) Maybe they made that index before DTOS was available. The program was written in FP1.02 if not FoxBase. (I think DTOS was in 1.02, but not FoxBase, right?) They used idx files, it was pre-CDX. Of course they also only opened each index when they needed it, and did a reindex command every time they changed index so it'd be up to date... That program was a joy to behold!
I think that DTOS() was "invented" just because DTOC(dDate,1) (which yields the same result) was hard to notice, and very few people used it. Dtoc(dDate,1) existed at least two versions before DTOS(), if not as early as FoxPlus.