title: ASP.NET MVC convert DateTime to UTC to send to API
body: <p>I need to send a start date and end date to an API in UTC format, I have tried the following:</p>
  
  <pre><code>DateTime startDate = Convert.ToDateTime(start + "T00:00:00Z").ToUniversalTime();
  DateTime endDate = Convert.ToDateTime(end + "T23:59:59Z").ToUniversalTime();
  </code></pre>
  
  <p>But it appears they are not converting to UTC, what would be the proper way to take startDate and endDate and convert them over to UTC?</p>
  
  <p>start is a string and is 2018-08-31 and end date is also a string and is 2018-08-31 I added the times in the code above to cover the full date.</p>