Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var agregaMinutos = function (dt, minutos) {
- return new Date(dt.getTime() + minutos*60000);
- }
- console.log(agregaMinutos(new Date(2014,10,2), 30).toString());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement