The current date is 2015-07-30 06:00
and 41786
seconds have passed.. how do i get the new date and time in the current date format?
var timeString = "2015-07-30 06:00";
// start time
var startTime = new Date(timeString);
// add duration to the start time
var duration = 41786;
startTime.setSeconds(startTime.getSeconds() + duration);
When i alert startTime
i don't get the new date after the seconds have passed.
How do i solve?