add 5:30 time javascript code example
Example 1: javascript add minutes to date
//add 30 minutes to date
var minutesToAdd=30;
var currentDate = new Date();
var futureDate = new Date(currentDate.getTime() + minutesToAdd*60000);
Example 2: add 5:30 time javascript
var istdate = new Date(new Date().getTime() + (5*60+30)*60000);
var [date,restdata] =istdate.toISOString().split("T");
var time = restdata.split(".")[0];
console.log("Date is:",date);
console.log("Time is:",time);