Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting Text to DateTime
Message
De
31/08/2008 09:17:36
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Converting Text to DateTime
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01343615
Message ID:
01343615
Vues:
62
Date = "080810"
Time = "1619"
How can I get a valid DateTime() out of this? Do I have to parse it apart into the year, month and day first? Seems like I have used an easier way with TRANSFORM or something, but can't find it now.

UPDATE: Nevermind. If I had just taken 2 more minutes of searching:

cDateTime = cDate + ' ' + cTime
?cDateTime
? ctot(transform(cDateTime,'@R ^99/99/99T99:99:99'))
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform