datepicker created to handle date fields