a guest Jun 22nd, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- const currentDate = moment(new Date())
- const insertDate = moment('Wed Jun 13 2018 16: 26: 15 GMT-0400(-04')
- const timeElapse = currentDate.diff(insertDate, 'days')
- console.log('difference days >>>>>', timeElapse)
RAW Paste Data