Change DATE memory representation to be days

DATE is now stored as a 32-bit number of days since 1970-01-01
Can inline and static import