I think it depends upon the base value of Java.
I guess the time is correct as that part equates to 0.2144426389 which is 05:08:48
The remainder is 14,110.
So if you can convert the correct date in SQL to a number ...
SELECT CAST(CONVERT(DATETIME, '2008-09-10', 121) AS INTEGER)
This will give you the relative number of days from some base point.
The difference between Java's and SQL's would need to be added to Java's to turn a Java Date into an SQL Date.
I think.
Main Topics
Browse All Topics





by: RQuadlingPosted on 2008-09-26 at 14:31:41ID: 22584028
Is the time correct?
If so, it looks like the offset is wrong.
Try using 25589 rather than 25567