Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Char expression transform to a datetime expression...??
Message
From
23/05/2006 02:28:47
 
 
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:
01124189
Views:
13
>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

The line b= 22/05/2006 21:00:00 PM is an illegal expression, but assume that you mean to say that b is a datetime expression, you can use
c=b-Ctot(a) && c will contain the time difference in seconds
Previous
Reply
Map
View

Click here to load this message in the networking platform