title: Create an ISO date object in javascript
body: <p>I have a mongo database set up. 
  creating a new date object in mongoDb create a date object in ISO format
  eg: <code>ISODate("2012-07-14T00:00:00Z")</code></p>
  
  <p>I am using node.js to connect to mongo database and query the database.
  when ever I create a new date object (<code>new Date()</code>) in javascript its creates a javascript date object eg: <code>Wed Mar 06 2013 14:49:51 GMT-0600 (CST)</code></p>
  
  <p>Is there a way to create an ISO date object in javascript so that I can send the object directly to the mongoDb and perform date query  </p>
  
  <p>I am able to perform the below query in mongoDb</p>
  
  <pre><code>db.schedule_collection.find({
    start_date: { '$gte': new Date(2012, 01, 03, 8, 30) }
  })
  </code></pre>
  
  <p>but cannot perform when I send in an javascript date object from node </p>
  
  <p>The mongodb cookbook provides an python example to query the mongo database using datetime module, but does not provide any example use javascript.</p>
  
  <p>Any help is appreciated.
  Thanking you in advance</p>