|
|
@ -375,7 +375,7 @@ export function parseDate(date: string): Date { |
|
|
|
|
|
|
|
|
// Transform 'yyyyMMdd' format to supported format by parse function
|
|
|
// Transform 'yyyyMMdd' format to supported format by parse function
|
|
|
if (date?.length === 8) { |
|
|
if (date?.length === 8) { |
|
|
const match = date.match(/^(\d{4})(\d{2})(\d{2})$/); |
|
|
const match = /^(\d{4})(\d{2})(\d{2})$/.exec(date); |
|
|
|
|
|
|
|
|
if (match) { |
|
|
if (match) { |
|
|
const [, year, month, day] = match; |
|
|
const [, year, month, day] = match; |
|
|
|