Added new functionality to dateTimeService and removed unused code.