switching to Date objects for date type