Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

getting days difference with moment js

var a = moment([2007, 0, 29]);
var b = moment([2007, 0, 28]);
a.diff(b, 'days') // 1
Source by momentjscom.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #days #difference #moment #js
ADD COMMENT
Topic
Name
5+9 =