Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function Datediff
Message
From
24/04/2007 10:55:09
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/04/2007 17:22:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01219117
Message ID:
01219345
Views:
8
>Hello, is there a function in VFP like Datediff of SqlServer or Ms-Excel.
>Because i need to look for the amount of minute between to datetime.
>
>saludos desde Santo Domingo,

No there isn't one like that (SQL server's is sort of buggy). However date and datetime types support + and - operators overloaded. ie:

lnMinutesDifference = (m.ltDateTime2 - m.ltDatetime1) / 60

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform