Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date variable
Message
De
16/01/2003 08:39:16
 
 
À
16/01/2003 07:45:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00741945
Message ID:
00742325
Vues:
28
>Okay, if "Try to avoid CTOD and CTOT. They are not Y2K compliant. In fact, depending on the setting of SET STRICTDATE, the compiler may complain." is true, what should be done, when you are trying to convert character date stings (or datetime strings) from tables into other tables, and the format of the string depends on the Regional settings of the computer [i.e. English(American) MM-DD-YYYY versus French (Standard) DD-MM-YYYY]

Beth

You can use them, with care. A better or more secure way would be to parse the date and build a date-safe command like DATE(yyyy,mm,dd) or using the strict date format: {^yyyy-mm-dd[,][hh[:mm[:ss]][a|p]]} (e.g. {^2003-01-16}). The presentation of the internal date depends on settings (see SET DATE in the help files).

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform