current date minus 6 days js code example
Example 1: javascript current date add 30 days
var future = new Date();
future.setDate(future.getDate() + 30);
Example 2: js date minus 18 years
use moment.js
var future = new Date();
future.setDate(future.getDate() + 30);
use moment.js