Make datepicker string format a dynamic function so we can change it