Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

moment diff

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: #moment #diff
ADD COMMENT
Topic
Name
1+7 =