diff --git a/src/main/webapp/resources/js/base/fimsFormFields.js b/src/main/webapp/resources/js/base/fimsFormFields.js index 80686ff5..e689b74c 100644 --- a/src/main/webapp/resources/js/base/fimsFormFields.js +++ b/src/main/webapp/resources/js/base/fimsFormFields.js @@ -45,15 +45,19 @@ class FimsFormFields extends FormFields { const fmtType = input.dataset.fmtType; switch (fmtType) { case 'dt' : - value = datetimeFormat.format(value); + value = datetimeFormat.parse(value); + value = datetimeFormat.format(value); break; case 'day' : - value = dateFormat.format(value); + value = dateFormat.parse(value); + value = dateFormat.format(value); break; case 'time' : + value = timeFormat.parse(value); value = timeFormat.format(value); break; case 'number' : + value = numberFormat.parse(value); value = numberFormat.format(value); break; default: