Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Small method to calculate since time
Message
De
04/10/2011 08:47:41
 
 
À
04/10/2011 05:41:53
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:
01525535
Vues:
38
Also, if you try that version, you will see it will give 5, 3 and 1:
        Dim earlierDate As New DateTime(2007, 8, 5, 10, 15, 0)
        Dim timespan As TimeSpan = DateTime.Now.Subtract(earlierDate)
        Dim difference As New DateTime(timespan.Ticks)
        MessageBox.Show(difference.Year.ToString + " " + difference.Month.ToString + " " + difference.Day.ToString)
We still have only one month completed since August 5th and it gives 3. So, I am not sure this approach will work as well.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform