Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Diference in minutes by two Dates
Message
 
 
To
09/06/2004 22:39:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00912044
Message ID:
00912084
Views:
9
João,

>How can i know the Time in minutes from two dates, i have the datetime fields, one with 2004-06-09 12:35:58 and other with 2004-06-10 2:35:25

The others have given you the forumulas. Subtracting two datetimes gives you the difference in seconds. Subtacting two dates gives you the difference in days. You can also add/subtract integer seconds to datetimes, and add/subtract integer days to dates:
ltNow = datetime()
? ltNow + 120 && two minutes from now
ldToday = date()
? ldToday - 7 && a week ago
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform