parseYYYYMMDD
Converts a string to a date. If the conversion failed, it throws new Error('Invalid date format').
Example
parseYYYYMMDD('2022-09-10');
Converts a string to a date. If the conversion failed, it throws new Error('Invalid date format').
parseYYYYMMDD('2022-09-10');