Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

moment time from x

var a = moment([2007, 0, 28]);
var b = moment([2007, 0, 29]);
a.from(b) // "a day ago"
Source by momentjs.com #
 
PREVIOUS NEXT
Tagged: #moment #time
ADD COMMENT
Topic
Name
1+2 =