Answers for "compare two dates using moment"

1

compare two dates using moment

moment('2010-10-20').isAfter('2010-01-01', 'year'); // false
moment('2010-10-20').isAfter('2009-12-31', 'year'); // true
Posted by: Guest on August-24-2020

Code answers related to "compare two dates using moment"

Code answers related to "Javascript"

Browse Popular Code Answers by Language