Refactored Date Service.
Fixed bug that causes server crash.