I have code for hexadecimal CAST(0x0000A2F5016C1769 AS DateTime) to mysql datetime, from how to cast the hexadecimal to varchar(datetime)?
code:
SELECT CAST(
'1900-01-01 00:00:00' +
INTERVAL CAST(CONV(substr(HEX(BinaryData),1,8), 16, 10) AS SIGNED) DAY +
INTERVAL CAST(CONV(substr(HEX(BinaryData),9,8),16,10) AS SIGNED)* 10000/3 MICROSECOND
AS DATETIME) AS converted_datetime
FROM
(
SELECT 0x0000A34900BD693D AS BinaryData
) d
But i need to convert CAST date CAST(0xA2380B00 AS Date)
to varchar date
Is any possible?