Examples

In the year 2002, the returned value for:
FUNCTION DATE-TO-YYYYMMDD(851003, 10)
is 19851003.
In the year 1994, the returned value for:
FUNCTION DATE-TO-YYYYMMDD(981002,(-10))
is 18981002.