Refactored all date/time functions into a DateAndTime singleton.