Answers for "moment set days"

4

moment add 30 days

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

moment month start date and end date

const startOfMonth = moment().clone().startOf('month').format('YYYY-MM-DD hh:mm');
const endOfMonth   = moment().clone().endOf('month').format('YYYY-MM-DD hh:mm');
Posted by: Guest on May-20-2021

Browse Popular Code Answers by Language