i want to add 1010 minutes to my time: 12 am
. the final time should be: 4:50 pm
. The date should NOT matter.
i tried with this:
function AddMinutesToDate(date, minutes) {
return new Date(date.getTime() + minutes*60000);
}
alert(AddMinutesToDate(2017-06-16), 1010)
but it did not work. please help? thanks!