Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00432546
Message ID:
00432575
Vues:
20
Victor,

>I actually had already tried that and had the same problem..but I did find a way around it by using the CTOD() gizmo.

That's interesting that you had a problem, because this code works fine for me once I fixed the minor typo in it.

lcYear = "2000"
lcMonth = "10"
lcDay = "1"
x= {^&lcYear-&lcMonth-&lcDay}

Plesae notes the vars are character not numeric. Also be careful with CTOD as it wis dependant on the SET DATE setting and can give you different results when the SET DATE is changed. If you want to use a function to do this use the DATE() function instead.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform