Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting date formats
Message
 
To
11/02/2002 17:35:12
Thomas Ianuzzi
Information Security Consultants, Inc.
Florida, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00618608
Message ID:
00618693
Views:
11
>If I request the system date Date() I get {02/10/02}. I want to export it to another application in the format {^2002/02/10}. Is there a direct conversion function?

Play with the SET DATE TO and SET MARK-commands. SET MARK TO "/" and SET DATE TO ANSI for example returns {YYYY/MM/TT} ie {2002/02/10}.

The ^ is only for input to tell VFP "This date is in a special format".

If You stay within VFP and it is vartype()="D" you don't have to care about international settings because VFP internally handles it differently anyway.

I have never experienced any other application that understands the ^.

HTH
Regards from Berlin

Frank

Dietrich Datentechnik (Berlin)
Softwarekombinat Teltow (Teltow)

Frank.Dietrich@dd-tech.de
DFPUG # 327
Previous
Reply
Map
View

Click here to load this message in the networking platform