Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

30 days javascript


var date = new Date();
date.setDate(date.getDate() - 30);
var dateString = date.toISOString().split('T')[0]; // "2016-06-08"

Source by coders911.org #
 
PREVIOUS NEXT
Tagged: #days #javascript
ADD COMMENT
Topic
Name
3+1 =