It run successful before year 2013 :-)
select 201212 (date);
*** Query completed. One row found. One column returned.
*** Total elapsed time was 1 second.
201212
----------
1920-12-12You need to adjust the integer to the internal format, (year - 1900) * 10000 + month * 100 + day:
SELECT (201301 * 100) + 1 - 19000000 (DATE);
*** Query completed. One row found. One column returned.
*** Total elapsed time was 1 second.
(((201301*100)+1)-19000000)
---------------------------
2013-01-01Dieter
↧