Mongoose date comparison
<p>My application will allow user to create coupons.  </p>

<p>Coupon will be valid in <code>datefrom</code> and <code>dateto</code> period.  </p>

<p>The thing is that every coupon should be valid for selected days, not hours.  </p>

<p>For example since Monday(2016-06-12) to Tuesday(2016-06-13), so two days.  </p>

<p>How should I store dates on server side and then compare it using <code>$gte</code> clause in Mongoose?  </p>

<p>Thank you :-)</p>