Answers for "get last 30 days from curent day by moment js"

4

moment add 30 days

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

first day of month and last day of month moment js

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language