cheryl-azyra / testing

Testing Items
0 stars 0 forks source link

EDS - Ace Express - Format Dates #9

Open cheryl-azyra opened 2 years ago

cheryl-azyra commented 2 years ago

Update mapping to support blank dates

cheryl-azyra commented 2 years ago

My current expression changes that the date is formatted as ‘dd/dd/dddd’ where ‘d’ is a digit (0-9), if there is no match then a null value is mapped. This handles invalid inputs such as

I can expand this pattern to accept other date formats if requried (ex: dd-mm-yyyy, or yyyy/mm/dd) or I can change the pattern so that it only maps null if blank if you would prefer it continues to error for an invalid input such as ‘dd-mm’.

I also wanted to confirm that I should run this check on all dates in the map and not just the delivery_date?