Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert Date
Message
From
24/09/2008 09:59:06
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
24/09/2008 08:45:37
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01350071
Message ID:
01350181
Views:
27
>>
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform