generate required attribute for `date_time` input