Change date type to INTEGER

Enabling easy sorting of dates