Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Small method to calculate since time
Message
 
 
À
04/10/2011 09:36:08
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01525501
Message ID:
01525547
Vues:
34
>>
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform