DateUtils
   - changed to universal code serving both client and server.
   - added comments to DateUtils