title: Bing Maps transit API: Am I formatting the query datetime incorrectly or parsing output datetime incorrectly?
body: <p>I'm failing to get the Bing Maps API working.  I'm inputting a query "How do I get from Annandale to Eastwood (Sydney) using public transport?" and getting results that have completely different times to what I queried.</p>
  
  <p>The API is documented here:</p>
  
  <p><a href="https://msdn.microsoft.com/en-us/library/ff701717.aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/ff701717.aspx</a></p>
  
  <p>and here:</p>
  
  <p><a href="https://msdn.microsoft.com/en-us/library/ff701718.aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/ff701718.aspx</a></p>
  
  <p>The documentation fails to specify what date format the responses are in, but I presume this is correct:</p>
  
  <p><a href="http://weblogs.asp.net/bleroy/dates-and-json" rel="nofollow">http://weblogs.asp.net/bleroy/dates-and-json</a></p>
  
  <p>So here's my query:
  <a href="http://dev.virtualearth.net/REST/V1/Routes/Transit?wp.0=-33.886620,151.171720&amp;wp.1=-33.785780,151.075740&amp;timeType=Departure&amp;dateTime=11:43:00&amp;maxSolns=3&amp;output=json&amp;key=(redacted)" rel="nofollow">http://dev.virtualearth.net/REST/V1/Routes/Transit?wp.0=-33.886620,151.171720&amp;wp.1=-33.785780,151.075740&amp;timeType=Departure&amp;dateTime=11:43:00&amp;maxSolns=3&amp;output=json&amp;key=(redacted)</a></p>
  
  <p>Note that I redacted our API key, for obvious reasons.  </p>
  
  <p>Note that I'm requesting a bus at 11:43am.  I've tried this in conjunction with a date and without a date, it makes no difference.</p>
  
  <p>I get a response which looks quite valid at first glance, but it's giving me times like this:
  "time":"/Date(1427222880000-0700)/"</p>
  
  <p>...which would be reasonable if my query time was 5:43, but it's not. That date format clearly indicates "milliseconds since 1970, UTC" (in desperation I tried adding &amp; subtracting 7 hrs, but got nothing meaningful). The documentation clearly says my time of 11:43 should be specified in the local timezone, i.e. just as "11:43".  </p>
  
  <p>Proceeding on the assumption that the Bing documentation is wrong or that the implementation is wrong, I tried arbitrarily adding 6 hrs or subtracting 18 hrs from my query time (that necessitated adding the date into the URL), but I got nothing that made sense.  I can't get any correspondence between my API results and the public Bing browser app.</p>
  
  <p>I couldn't find out who to ask from Microsoft either.</p>
  
  <p>Any ideas?</p>