Is there a way to compare two dates without time using jS moment?
I tried various formats, but can't make it work.
It works fine for me with dateTime:
var ExpiryDate = new Date("11/13/2014 11:13:00"); var daysDiff = moment(ExpiryDate).diff(moment(Date.now()), 'days');
I am looking to get a result of 14 days no matter what time of day.
thanks
source share