title: Format of DateTimeOffset in OData
body: <p>I have two JavaScript <code>Date</code> objects. I need to do an OData query between these two <code>Date</code> objects. The information I'm querying has a field called <code>createDate</code> which is a <code>DateTimeOffset</code>. From my understanding, I can do something like this:</p>
  
  <pre><code>entities?filter=((createDate ge [Date1]) and (createDate le [Date2]))
  </code></pre>
  
  <p>My question is:</p>
  
  <ol>
  <li>What format is a DateTimeOffset?</li>
  <li>How do I convert a JavaScript Date object to DateTimeOffset format?</li>
  </ol>
  
  <p>Thank you!</p>