Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

moment remove one day

let startdate = moment();
startdate = startdate.subtract(1, "days"); // will work with days/d, years/y, months/m
startdate = startdate.format("DD-MM-YYYY");

let startdate = moment().subtract(1, "days").format("DD-MM-YYYY");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #moment #remove #day
ADD COMMENT
Topic
Name
5+8 =