Fix call to datepicker.formatDate.