Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DTOS
Message
De
10/07/2001 20:19:55
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: DTOS
Divers
Thread ID:
00528987
Message ID:
00528989
Vues:
17
Hi Michael,

How about:
cDate = "20010601"
dDate = DATE(VAL(LEFT(cDate,4)),VAL(SUBSTR(cDate,5,2)),VAL(RIGHT(cDate,2)))
Hope this helps,
Gavin...

>Is there a function that does the opposite of this and converts a string, such as "20010601", to a date (CTOD() does not work unless there's a "/" in there)?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform