title: Set or read Date in HTTP header (Windows Phone 8)
body: <p>Does anyone knows of a way to set or read the 'Date' HTTP header in an HTTP GET request on Windows Phone 8?</p>
  
  <p>I need to be able to set the value of the Date header or at least read the value that will actually be sent in the request.</p>
  
  <p>I have tried with something like:</p>
  
  <pre><code>var web_request = HttpWebRequest.CreateHttp(url);
  web_request.Headers["Date"] = the_date;
  </code></pre>
  
  <p>But this produces an exception at run time:
  System.ArgumentException: The 'Date' header must be modified using the appropriate property or method.</p>
  
  <p>There's sample code here with HttpClient but this is apparently not available under Windows Phone 8:
  <a href="https://stackoverflow.com/questions/10679214/how-do-you-set-the-content-type-header-for-an-httpclient-request">How do you set the Content-Type header for an HttpClient request?</a></p>
  
  <p>I have tried reading the date as well but after:</p>
  
  <pre><code>var web_request = HttpWebRequest.CreateHttp(url);
  </code></pre>
  
  <p>The date does not seem to be set yet.</p>