title: Create a document and set the date - Mongoose
body: <p>I'm trying to create a document in mongo with a field date: Date. </p>
  
  <p>When I post to API, the document created has a different time that I set, as follows:</p>
  
  <pre><code>{
  "serialnumber": "1234567",
  "date": "2019-08-30T10:32"
  }
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>{
      "troubles": [],
      "_id": "5c35e9c8e726822a243936a9",
      "serialnumber": "1234567",
      "date": "2019-08-30T13:32:00.000Z",
      "updated": "2019-01-09T12:32:08.996Z",
      "__v": 0
  }
  </code></pre>
  
  <p>My mongoose Schema:</p>
  
  <pre><code>var MeasurementSchema = new Schema({
      serialnumber: String,
      date: Date
  ......
  </code></pre>
  
  <p>As we saw, I wrote 'T10:32', but, the time of parameter 'date' results in 12:32.</p>
  
  <p>Any tips?</p>