Date format converter coverage

Added a unit test for the date format converter, also fixed the problems the test identified.