Okay so I can access the HTTP ajax response header using
xhr.getAllResponseHeaders();
but it doesn\'t seem to get the Date with it, though
It might be the case you are making a CORS request and the headers are filtered out for security reasons.
See also similar question about missing response headers in ajax request. The solution might be to set this HTTP header in the server response:
Access-Control-Expose-Headers: Date