Added some methods for simplifying date parsing and formatting in tests.