Make nullable startdate and enddate