Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Char expression transform to a datetime expression...??
Message
 
 
To
22/05/2006 23:57:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01124169
Message ID:
01124175
Views:
10
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
Previous
Reply
Map
View

Click here to load this message in the networking platform