i would like to sum this time 15-00-00
with this which is a string: 4 minutes
I don't know how to convert the 4 minutes
into a correct format and the 15-00-00
into 15:00:00
here's my code :
var reservationDate = '<?= $selectDateReservation[0] ?>';
var reservationTime = '<?= $selectTimeReservation[0] ?>';
var getDuration = '<?= $selectDuration[0] ?>' // returns: "4 minutes"
console.log(reservationDate); // returns the date: 19-05-17
console.log(reservationTime); // returns the time: 15-00-00