diff --git a/src/client/utils/date.js b/src/client/utils/date.js index 58ab504418..69fed4dda3 100644 --- a/src/client/utils/date.js +++ b/src/client/utils/date.js @@ -120,13 +120,18 @@ function isShortDateValid(year, month) { } /** - * Date formatting and parsing functions + * @deprecated This function is deprecated. Use `formatDate` instead. + * + * This function will be removed in the near future. */ - function format(dateStr, dateFormat = DATE_LONG_FORMAT_2) { return isDateValid(dateStr) ? formatFns(parseISO(dateStr), dateFormat) : null } +/** + * Parsing functions + */ + const padZero = (value) => { const parsedValue = parseInt(value, 10) if (Number.isNaN(parsedValue)) {