You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nodejs
Hello all
How can i add the existing time in moment.js, Like i have Sat Jan 30 2016 17:33:43 GMT+0530 (IST) i want to add 5 minutes on it
Christopher Mina
unread,
Jan 30, 2016, 11:51:32 PM1/30/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nodejs
I'd suggest you don't use Moment for this purpose. Instead, you can simply parse your date into a number and then add the number of milliseconds in 5 minutes.
Eg.
var d = Date.parse({your date string});
d = new Date(d.getTime() + 300000);