I a hex value 0x00009B9300E313F9 whose equivalent date time value is
Jan 16 2009 13:46:45.950 .i got this hex value after raw reading an .mdf file of sql server 2000
the sql datatype of this value is "datetime"
can somebody please help me convert this hex value to date-time using c++
hi thanks for replying and for sharing these useful information.
The date part is giving me the right ans which is 16-01-2009
however the time is still incorrect.
the 4 bytes associated with time is 0x00e313f9 (little endian form).
The time should be 1:46PM where as i am getting the ans as 4:08:01 AM.