@homefile/components-v2 2.24.11 → 2.24.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -104,7 +104,7 @@ export const joinDayMonthYear = (value) => {
|
|
|
104
104
|
});
|
|
105
105
|
};
|
|
106
106
|
export const formatISODate = (value) => {
|
|
107
|
-
const displayValue = isValid(parseISO(value))
|
|
107
|
+
const displayValue = (isValid(parseISO(value)) || isValid(new Date(value)))
|
|
108
108
|
? format(value, 'MM/dd/yyyy')
|
|
109
109
|
: '';
|
|
110
110
|
return displayValue;
|
package/package.json
CHANGED
|
@@ -142,7 +142,7 @@ interface FormatCurrencyI {
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
export const formatISODate = (value: string) => {
|
|
145
|
-
const displayValue = isValid(parseISO(value))
|
|
145
|
+
const displayValue = (isValid(parseISO(value)) || isValid(new Date(value)))
|
|
146
146
|
? format(value, 'MM/dd/yyyy')
|
|
147
147
|
: ''
|
|
148
148
|
|