Change DATE memory representation to be days

DATE is now stored as a 32-bit number of days since 1970-01-01
Why change these to `int`? It seems that the stack type and compiler are still using `long`, so this is different than the generated code.