Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Am I missing something here - CTOD()
Message
 
À
06/12/2001 09:38:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00590504
Message ID:
00590561
Vues:
20
Claudio,

You have a couple of options;

1. SET STRICTDATE TO 0 to shut off VFPs date checking.
2. Use the {} delimiters for your date;
mybeautifuldate = {  /  /  }
The setting of strictdate is a potential problem as 0 because it allos you to use the CTOD() function which is dependant on the current SET DATE setting;
SET DATE BRITISH
?CTOD("11/12/01") is December 11, 2001
SET DATE AMERICAN
?CTOD("11/12/01") is November 12, 2001
Using a strictdate syntax insure that the set date setting is never an issue. The strictdate way is;
MyBeautifulDate = {^YYYY/MM/DD}
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform