subtract 10years from current date in javascript code example Example: js date minus 18 years use moment.js