Added new date method with tests.