Extracted datetime methods and variables from CommandParser into
DateParser.