Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript new date 30 days ago

 
let now = new Date();
const backdate = new Date(now.setDate(now.getDate() - 30));

 
PREVIOUS NEXT
Tagged: #javascript #date #days
ADD COMMENT
Topic
Name
7+8 =