Add date parser function

The begin and end date options now work for the print, balance, and
register commands. Still needs some refactoring and additional unit
tests.