Change DATE memory representation to be days

DATE is now stored as a 32-bit number of days since 1970-01-01
This code seems identical to the above. Extract a method?