Find the time after 15 minutes of given time in javascript Example : given time is 2012-01-10 5:50 and I need to get like 2012-01-10 6:05
This will work for you
next = new Date ('Sun Jan 01 2012 5:45:10');
next.setMinutes (next.getMinutes() + 15 );
alert(next); //will result as Tue Jan 01 2012 6:00:10
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With