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