title: maps.googleapis.com incompatible with date.js
body: <p>Recently encountered a problem with a long standing asp.net c# program.</p>
  <p>In my default.aspx amongst other things we have...</p>
  <p><code>&lt;script src=&quot;https://maps.googleapis.com/maps/api/js?key=...&amp;libraries=geometry&quot;&gt;&lt;/script&gt;</code></p>
  <p><code>&lt;script src=&quot;/js/date.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</code></p>
  <p>date.js is a utility library from <a href="http://www.datejs.com/" rel="noreferrer">http://www.datejs.com/</a></p>
  <p>Just recently (last 6 weeks) our map is failing to draw anything, after a bit of investigation it seems that there's a <code>toString()</code> in one of the maps library files that tries to use the <code>toString()</code> from the date.js file and fails miserably.</p>
  <pre><code>Uncaught TypeError: format.replace is not a function
      at Date.toString (date.js:40)
      at iq (common.js:65)
      at Object._.Bq (common.js:75)
      at map.js:83
  </code></pre>
  <p>For the moment I can specify the version of google maps, 3.40 works fine, anything later doesn't.</p>
  <p>Does anyone have a solution to this or has anyone seen this problem? Granted date.js is very old library now but I wondered if there's anything simply I can do.</p>