minor change
Add synchronized keyword for Date related method to avoid conflict in multi-thread condition.
Merge pull request #29 from MengZhang/develop

Develop pull request from Meng