'How to convert from date to Hex in MySQL?

I need to convert the minimum possible date in sql, that is 1753-01-01 in hexadecimal format, I have tried to do it this way but it shows me the same sentence.

SELECT cast('1753-01-01' AS binary(8))


Solution 1:[1]

I think we can try to use HEX function instead of CAST

SELECT HEX(dt)
FROM t

sqlfiddle

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 D-Shih