Answers for "moment js now minus 1 hour"

2

moment add 30 days

moment().add(30, 'days');
Posted by: Guest on December-22-2020
3

moment subtract days

var startdate = moment();
startdate = startdate.subtract(1, "days");
startdate = startdate.format("DD-MM-YYYY");
Posted by: Guest on July-01-2020
1

moment js subtract years

let min_date = moment().subtract(18, 'years');
Posted by: Guest on November-19-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language