moment date difference in days angular 2 code example Example: moment date difference in days moment(new Date()).diff(moment(new Date()), 'days') // 0