var oneMonthAgo = new Date( new Date().getFullYear(), new Date().getMonth() - 1, new Date().getDate() ); console.log(oneMonthAgo); //$uj@y