Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert Text to DateTime
Message
 
À
19/08/2008 14:34:23
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01340048
Message ID:
01340052
Vues:
11
This message has been marked as the solution to the initial question of the thread.
>This does not work. The last value is an empty DateTime. How do I do this? What if the date is "20080819" or "08192008" or "08/19/2008" or whatever? Is there one way to convert these?
>
>
>cDate = '080819'
>cTime = '1315'
>cDateTime = cDate + ':' + cTime
>? ctot(transform(cDateTime,'@R ^99/99/99:99:99'))
>
cDate = '080819'
cTime = '1315'
cDateTime = cDate + ' ' + cTime
?cDateTime 
? ctot(transform(cDateTime,'@R ^99/99/99T99:99:99'))
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform