extract datetimepicker to a partial