Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacing VFP Function with SQL Server
Message
From
09/10/2014 13:29:30
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2014
Application:
Web
Miscellaneous
Thread ID:
01609065
Message ID:
01609072
Views:
43
>
>Do I understand correctly that DATEDIFF() is a "standard" SQL Function that accepts three parameters? (sorry for so many questions).

It's a function in SQL Server. It allows you to look at the difference between any part of 2 dates. So you can get the minutes elapsed between 2 datetimes, or the days elapsed between 2 dates.

So this...

DATEDIFF( d, '1-1-2014', '1-2-2014')

will return the difference between the first date and the second date, in terms of days.

again, there are all sorts of values for the first parameter...anything from milliseconds to years and things in between.

Never apologize for asking questions. :)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform