My problem is with a table that stores the date and time in two separate columns as integers. I know that's how sql server stores the dates internally - first 4 byte int for the dates after 1900 - 01 - 01 and the second 4 byte int for ticks after midnight, but the values I have don't correspond to this.
Direct example - Date:77262 , Time:3767327.
The time value converts to datetime (after binary(4) conversion) - 1900-01-01 03:29:17.757 but the date is not even close to what it should be and I'm sure it has to be somewhere in july 2012. I'm probably missing something fundamental but I really couldn't find any solution.