Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CTOD() Totally un-Y2K...
Message
De
03/01/2000 15:18:59
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
03/01/2000 14:59:10
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00311837
Message ID:
00311859
Vues:
31
John,

"I ASSUMED (silly me)"

I guess SET ASSERT ON from VFP would have helped you un-assume.

"I just assumed the people who made Fox were as smart as I." Actually, I think they did the same thing you did. They *assumed*.

Actually, isn't your mdate below "01/01/00" with CENTURY OFF?

Ok, you can slap me with a Trout next time I goof up. :-)




>Ok guys ...
>
>I knew FoxPro wouldn't see the century 'cross-over'. I knew that if I was operating in the 1900s and put in a '00' date, FP would see it as 1900.
>
>But I ASSUMED (silly me) that when we hit the Y2K, that FoxPro would pick up the cenutry we're in! WRONG!!!!
>
>If you type this in with SET CENTURY OFF:
>
>mdate = CTOD(DTOC(date()))
>
>mdate is "01/01/1900"
>
>Arrrgghhh!
>
>You all probably knew this, I just assumed the people who made Fox were as smart as I. Wrong.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform