1const dateB = moment('2014-11-11');
2const dateC = moment('2014-10-11');
3
4console.log('Difference is ', dateB.diff(dateC), 'milliseconds');
5console.log('Difference is ', dateB.diff(dateC, 'days'), 'days');
6console.log('Difference is ', dateB.diff(dateC, 'months'), 'months');
7