When I try to SELECT CAST('01/1/2001' AS DATE)
, it always returns NULL
(as an example of how I can't get this to work). I'm trying to INSERT
data created in this format.
How can I store dates of this format in a DATE
column?
Please note that the day never has a prefix 0
while the month does if it is less than 10
.