datepicker uses string field