javascript accurately get date minus 1 month code example Example: js date minus 18 years use moment.js