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)
Add Comment
Please, Sign In to add comment