Change attribute required to dates