Wrong date set when selecting date on the date picker on the take survey widget in Service portal if the date format is not the default date format, for example dd-MMM-yy.DescriptionWrong date set when selecting date on the date picker on the take survey widget in Service portal if the date format is not the default date format, for example dd-MMM-yy.Steps to Reproduce Change the system date format to dd-MMM-yy2. Create a survey in a rome instance with a date field3. Assign the survey to a user, for example, Abel Tuter4. Add the My Surveys widget in index page of Service Portal5. Impersonate Abel Tuter6. Click on the survey assigned to Abel from the My Surveys widget.7. Select the current date on the date pickerResult: The date selected shows the wrong date. If you click on submit, the date is not stored in the Survey Instance.The console shows the following error:js_includes_sp_libs.jsx?v=09-16-2021_1434&lp=Sun_Nov_07_19_10_51_PST_2021&c=8_200:5938 RangeError: Maximum call stack size exceededat RegExp.exec (<anonymous>)at RegExp.[Symbol.replace] (<anonymous>)at String.replace (<anonymous>)at s.trim (js_includes_sp.jsx?v=09-16-2021_1434&lp=Sun_Nov_07_19_10_51_PST_2021&c=8_200:35441)at t.exports (js_includes_sp.jsx?v=09-16-2021_1434&lp=Sun_Nov_07_19_10_51_PST_2021&c=8_200:35441)at js_includes_sp.jsx?v=09-16-2021_1434&lp=Sun_Nov_07_19_10_51_PST_2021&c=8_200:22844at new Ht (js_includes_sp.jsx?v=09-16-2021_1434&lp=Sun_Nov_07_19_10_51_PST_2021&c=8_200:22844)at jt (js_includes_sp.jsx?v=09-16-2021_1434&lp=Sun_Nov_07_19_10_51_PST_2021&c=8_200:22844)at M.mn.utcOffset (js_includes_sp.jsx?v=09-16-2021_1434&lp=Sun_Nov_07_19_10_51_PST_2021&c=8_200:22844)at M.P.utcOffset (js_includes_sp.jsx?v=09-16-2021_1434&lp=Sun_Nov_07_19_10_51_PST_2021&c=8_200:22846)WorkaroundIn the angular provider 'spSurveyDatePicker' change the following suggested code (refer screen shot after applying the workaround) Note: Please revert the changes back while upgrading in order to get the latest update 1. in line 97 change from `format: "HH:mm:ss" ` to `format: format` 2. in line 170 change from `dp.data('DateTimePicker').setDate(moment(formattedDate).clone());` to `dp.data('DateTimePicker').setDate(formattedDate);` Related Problem: PRB1538440