R
rushaustin
Hello,
In SQL, if I do
Select cast (37797.8159722222 as datetime)as DateFromDecimal
i get 2003-06-27 19:34:59.997 as the return.
in VB.NET if I do:
Dim idate As Date
idate = Date.FromOADate(37797.8159722222)
I get 6/25/2003 7:35:00 PM as the return.
Any idea as to why I'm getting different day of the month?
Any idea how I can get vb.net to return the time in the same precision
as SQL? VB.net appears to be rounding the time up to 7:35:00 PM
Thanks!
In SQL, if I do
Select cast (37797.8159722222 as datetime)as DateFromDecimal
i get 2003-06-27 19:34:59.997 as the return.
in VB.NET if I do:
Dim idate As Date
idate = Date.FromOADate(37797.8159722222)
I get 6/25/2003 7:35:00 PM as the return.
Any idea as to why I'm getting different day of the month?
Any idea how I can get vb.net to return the time in the same precision
as SQL? VB.net appears to be rounding the time up to 7:35:00 PM
Thanks!