Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Offset by one millisecond
Message
De
19/09/2010 14:13:49
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Offset by one millisecond
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01481850
Message ID:
01481850
Vues:
85
I have a weird issue here which I cannot resolve.

I receive a date value which is something like 2010-09-18T12:57:56.341-04:00. As you can see, we have 341 milliseconds. This is presently in a data row. So, if I do this, I can easily see that I have 341 milliseconds:
Dim ldDate As Date = Nothing
ldDate = loRow("LastUpdate")
MessageBox.Show(ldDate.Millisecond.ToString)
If I update my record with loRow("LastUpdate"), SQL Server shows that I have this value: 2010-09-18 12:57:56.340.

So, I lost one millisecond.

Is there some kind of rounding in there?
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform