DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+7 =
Submit