Closed yavyx closed 3 months ago
Re-submitting PR, DIG-1671
date_format
field to the manifest. It specifies the order of day, month and year to parse ambiguous dates properly.date_format
to the manifestCSVConvert.py
using a dataset with ambiguous dates for that field and try different patterns in the template to confirm they are parsed as indicated. I added some try catch blocks to the part that is reading the manifest so that if the fields are blank, the script exits as well as if the manifest doesn't have those specified at all, also added a catch to ensure the date format is some form of 'DMY/MDY/YDM'
@daisieh I addressed the changes and Marion's fix is working
What's new
How to test
Previously:
Added adate_format
parameter to thedate_interval
mapping function to specify the order of day, month and year to parse ambiguous dates properly.How to test- Adddate_format
to any date field in the templateDONOR.INDEX.date_of_birth, {date_interval(Donor.date_of_birth, date_format="DMY")}- RunCSVConvert.py
using a dataset with ambiguous dates for that field and try different patterns in the template to confirm they are parsed as indicated.