Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Century & DTOC different in VFP6??
Message
De
08/01/2001 10:34:17
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00460546
Message ID:
00460583
Vues:
12
>James,
>
>If SET DATE SHORT the DTOC(DateField) gives 7/2/00. If SET DATE LONG, DTOC(DateField) Saturday, July 01, 2000. What I need (and had with VFP5) is 07/01/2000. I have a LOT of legacy code that grabs the year by using SUBSTR(DTOC(DateField),7,4).

Why not use the year function: STR(YEAR(DateField))
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform