title: Passing a C# DateTime via the Query String
body: <p>I have a C# DateTime object. This object includes both the date and time. I need to pass this information to a REST-based service. My question is, how do I format the DateTime, such that I can pass it via the query string, and parse it back into a DateTime on the server-side?</p>
  
  <pre><code>DateTime startDate = GetStartDate();
  string url = "http://www.mydomain.com/myservice.svc/[startDateGoesHere]
  
  WebRequest request = HttpWebRequest.Create(url);
  request.BeginGetResponse(new AsyncCallback(Service_Completed), request);
  </code></pre>
  
  <p>Thank you,</p>