Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Char expression transform to a datetime expression...??
Message
 
 
À
22/05/2006 23:57:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01124169
Message ID:
01124175
Vues:
12
This message has been marked as the solution to the initial question of the thread.
>Hi
>
>I have got this character expression:
>
>a="22/05/2006 05:30:00 PM"
>
>and this other one datime expression:
>
>b= 22/05/2006 21:00:00 PM
>
>My question is:
>
>How to transform the variable named a into a datetime effective expression, so I could do the operation:
>
>c= b - a
>
>Thanks in advance.
>Carlos Burgos
Carlos,

Try
SET DATE BRITISH
SET HOURS TO 24
lcTime = [ 22/05/2006 11:00:00 PM]
?CTOT(m.lctime)
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform