Updated datepicker to use new setup API