Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting date formats
Message
 
À
11/02/2002 17:35:12
Thomas Ianuzzi
Information Security Consultants, Inc.
Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00618608
Message ID:
00618693
Vues:
12
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform