Catch if a user specifies an unexpected date format or string.
Created entrymgr.formulate_entry_filename() and related test functions.
Make use of formulate_entry_filename() function.
Consolidate this code to make it prettier.
entrymgr.py: Remember to close() opened file.
Close the file used in tests too.