formatDICOMDate options object
formatDICOMDate (exported from @ohif/ui-next) now takes its optional
arguments as a single options object instead of positional parameters.
Before (3.12):
formatDICOMDate(date, 'YYYY-MM-DD');
After (3.13):
formatDICOMDate(date, { strFormat: 'YYYY-MM-DD' });
The available options are:
strFormat— explicit output format; overrides the locale'sCommon:localDateFormat.fallbackFormat— format used only when the active locale doesn't defineCommon:localDateFormat(defaults toMMM D, YYYY).invalidFallback— value returned for empty/unparseable input; when omitted, the prior lenient behavior is preserved.
Callers that passed only the date argument (including passing formatDICOMDate
directly as a formatDate formatter) are unaffected.