Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert Date
Message
De
24/09/2008 09:59:06
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
24/09/2008 08:45:37
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01350071
Message ID:
01350181
Vues:
26
>>
eval(transform(ab,"[^9999-99-99")+"}")
>>
>>And you can simply put your FormatValue instead of ab and that'd be it - and Set Date independent too. The eval() would return a date value, which you can then output any way you like.
>
>But doesn't that just give me "2002-01-23" as the value? Which is what I'm trying to turn into "01-23-2002" anyway. Sorry, just not quite getting it.

Nope, {^2002-01-23} is a date, i.e. the eval() will return a date value, not a string. Then you can keep your Set Date American and have a simple dtoc() of this value give you such a string.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform