title: NodeJS: Why is there a two hour difference when Date is set as type?
body: <p>I am trying to set a dateTime as a date type in typescript. But there is a two hours difference when it receives the dateTime from the frontend and I could see the date on the browser network hasn't changed. It changes only when it gets to my node js. This is how I declare my interface:</p>
  <pre><code>interface Idate {
    date: Date;
  }
  </code></pre>
  <p>I send 2021-02-19T12:40:00+02:00 I get this 2021-02-19T10:40:00.000Z</p>
  <p>If I set dateTime as a string it does not change, I mean there is no difference in dateTime.
  Is there a way I can fix this without changing the type to a string?</p>