title: How to convert BSON to JSON with human-readable date format
body: <p>I would like to transform a BSON dump of MongoDB to JSON.</p>
  
  <p>To do that, I'm using the <a href="http://docs.mongodb.org/manual/reference/program/bsondump/" rel="noreferrer">bsondump</a> tool provided with Mongo, but I get an output like :</p>
  
  <pre><code>{ "_id" : ObjectId( "5316d194b34f6a0c8776e187" ), "begin_date" : Date( 1394004372038 ), "foo" : "bar" }
  { "_id" : ObjectId( "5316d198b34f6a0c8776e188" ), "begin_date" : Date( 1394004407696 ), "foo" : "bar" }
  </code></pre>
  
  <p>Can anyone tell me how to get the dates appear in a human readable format (e.g. <code>hh:mm:ss dd/mm/yyyy</code>) ?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>It looks like that a more recent version of mongodump outputs dates as:</p>
  
  <pre><code>{ "_id" : ObjectId( "5316d194b34f6a0c8776e187" ), "begin_date" : {"$date":"2015-11-11T08:45:03.974Z"}}, "foo" : "bar" }
  </code></pre>
  
  <p>So this question is not relevant anymore.
  Thanks everybody for your help here.</p>