diminuir mes em javascript code example Example: subtrair datas javascript frontend var d = new Date(); d.setDate(d.getDate()-5);