How to convert CAST(0xE3350B00 AS DATE)
to mysql ?
I used various forum supports and have following results
0xE3350B00 => 2059-04-03 22:56
0x0000A17F00000000 => 2013-03-12
But both dates belong to same line of data so i am confident that 0xE3350B00
should convert to nearby 2013-03-12
but not finding it technically? Can anyone help if conversion of 0xE3350B00
date??
I used following code in sql function:
return date_add(date_add("1900-01-01 00:00:00", interval conv(substr(HEX(raw_data), 5, 4), 16, 10) DAY), interval conv(substr(HEX(raw_data), 1, 4), 16, 10) MINUTE);