var minutesforExpiry = parseInt("30") - parseInt("25"); var timetoExpire = new Date(); var minutestoExpire = parseInt(timetoExpire.getMinutes()) + minutesforExpiry;
momentOfTime = new Date(); // just for example, can be any other time myTimeSpan = 5*60*1000; // 5 minutes in milliseconds momentOfTime.setTime(momentOfTime.getTime() + myTimeSpan);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)