This method tells the length of time from the date given to now.
moment().toNow(); moment().toNow(Boolean);
var a = moment([2015, 3, 15]).toNow();
If you want to remove the prefix, use true with toNow() as shown below −
var a = moment([1995, 3, 15]).toNow(true);