Numbers can be converted to dates by calling the DATE function. But in that case, the number identifies the number of days to be added to 0001-01-01. So completely different semantics are applied.
You could write your own function like this:
Code:
CREATE FUNCTION NumberToDate(n INTEGER)
RETURNS DATE
DETERMINISTIC
NO EXTERNAL ACTION
RETURN DATE('0001-01-01') +
((n / 10000) - 1) YEARS +
((MOD(n / 10000) / 100) - 1) MONTHS +
((MOD(n / 100) - 1) DAYS;
Another alternative may be to convert the number to a string and the string to a date. I haven't tried that, though.