input directive: date input factory