Store dates as Date objects instead of strings

Enable reliable comparison and formatting by storing dates as Dates