title: How do i compare dates from mongodb in nodeJS
body: <p>I want to compare date that i fetch from mongodb and the one i provide while running the program(in node.js). Following is my mongodb schema.</p>
  
  <pre><code>    {
          date:{ type:Date },
          entry:{type:Date},
          late: {type: Boolean}
  
      }
  </code></pre>