Context
NCBI Datasets has started returning date ranges in the format of [2001 TO 2002], which has caused errors in the ingest workflow during augur curate format-dates (norovirus, rabies, seasonal-cov).
Related to #1494, but different in that this needs to support parsing an existing date range format rather than apply a date range to a field.
Description
curate format-dates should be able to convert the date range to the Augur supported date range format YYYY-MM-DD/YYYY-MM-DD.
[2001 TO 2002] -> 2001-XX-XX/2002-XX-XX 2001-01-01/2002-12-31
Context
NCBI Datasets has started returning date ranges in the format of
[2001 TO 2002], which has caused errors in the ingest workflow duringaugur curate format-dates(norovirus, rabies, seasonal-cov).Related to #1494, but different in that this needs to support parsing an existing date range format rather than apply a date range to a field.
Description
curate format-datesshould be able to convert the date range to the Augur supported date range formatYYYY-MM-DD/YYYY-MM-DD.[2001 TO 2002]->2001-XX-XX/2002-XX-XX2001-01-01/2002-12-31