how to get number of days between two dates in moment js?
Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 To get the number of days between two dates in moment js, use the diff() method with days to get the difference in a day. Just import a moment in your file and call a.diff(b, 'days') and it will return the difference of dates in a day. a.diff(b, 'days') Today, I鈥檓 going to show How do I get a number of days between two dates using moment js, here I will use the momentjs standard method moment() and diff() for a number of days between two dates....