generate required attribute for `date_time` input

closes #730