title: Format date in mongodb query output on shell
body: <p>I want to format the date time into an specific format on the mongo shell output</p>
  
  <p>My query</p>
  
  <pre><code>db.getCollection('people').find({
          date: { 
              $gte: ISODate("2017-04-24T14:04:34.447Z") 
          }
      },
      {
          _id: 0,
          age: 0,
  
      }
  );
  </code></pre>
  
  <p>My output against this query:</p>
  
  <pre><code>/* 1 */
  {
      "user_id" : "bcd020",
      "status" : "D",
      "date" : ISODate("2017-04-24T14:04:34.447Z")
  }
  
  /* 2 */
  {
      "user_id" : "bcd021",
      "status" : "D",
      "date" : ISODate("2017-04-24T14:04:34.447Z")
  }
  </code></pre>
  
  <p>What i want is to format the datetime in the output something like,</p>
  
  <pre><code>/* 1 */
      {
          "user_id" : "bcd020",
          "status" : "D",
          "date" : 2017-04-24 14:04:34
      }
  
      /* 2 */
      {
          "user_id" : "bcd021",
          "status" : "D",
          "date" : 2017-04-24 14:04:34
      }
  </code></pre>