Make sure date string format is consistent #57
Types of changes
Added function in date_utils.py to convert any parse-able date string into the desired format dd-mm-YYYY. Added call to that function as part of sanitize_fatality_entity() in apd.py.
These changes ensure that the dates returned will all be formatted the same, improving readability.
Good job on your first PR @mrengler! It looks very good.
I apologize again for the mistake I made in the issue regarding the date format. Luckily it is an easy one to fix.
Aside of that, just a few minor remarks:
And at the end of the CHANGELOG, add a link to the issue:
… any format into the standard English format mm-dd-YYYY and adds a call to this function during data sanitization. This improves legibility of the data as all dates no longer appear in various formats. Fixes #56
…ecember 7, 2017' == '07/12/2017' is False)
… and updated tests to reflect date format change.
…FROM and TO date ranges will have expected behavior.