Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Offset by one millisecond
Message
From
19/09/2010 14:13:49
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Offset by one millisecond
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01481850
Message ID:
01481850
Views:
84
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
Next
Reply
Map
View

Click here to load this message in the networking platform