Guest User

Untitled

a guest
Jun 22nd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. const currentDate = moment(new Date())
  2. const insertDate = moment('Wed Jun 13 2018 16: 26: 15 GMT-0400(-04')
  3. const timeElapse = currentDate.diff(insertDate, 'days')
  4.  
  5. console.log('difference days >>>>>', timeElapse)
Add Comment
Please, Sign In to add comment