title: Python datetime to Azure Edm.DateTimeOffset
body: <p>How to convert a string of the format 2020-01-03 05:30:44.201000 to a date time offset aware string..</p>
  
  <p>I am getting this value from a cosmosdb database and trying to insert the same into a search service.</p>
  
  <p>Getting the error as</p>
  
  <pre><code>Cannot convert the literal '2020-01-08 11:49:41.653000' to the expected type 'Edm.DateTimeOffset'
  </code></pre>
  
  <p>I guess the output should be in the following format..</p>
  
  <pre><code>"2015-09-20T00:00:00Z"
  </code></pre>
  
  <p>I want to use python datetime but dont know how to to convert the string to format understandable for azure</p>