Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Small method to calculate since time
Message
 
 
To
04/10/2011 09:36:08
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01525501
Message ID:
01525547
Views:
33
>>
>>Years	Months	Days
>>4	50	1521
>
>I am not sure if this is really a timespan difference. In my case, I only want the remaining portion of each subset. So, in this case, it should give 4 years, 1 month and 29 days.

In SQL Server there is no function (AFAIK) that gives the difference. All DATEDIFF values are absolute (number of full months passed, number of full days passed, etc.). So, we need to do the calculation there ourselves.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform