Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get first day of month javascript moment

const startOfMonth = moment().clone().startOf('month').format('YYYY-MM-DD hh:mm');
const endOfMonth   = moment().clone().endOf('month').format('YYYY-MM-DD hh:mm');
Source by newbedev.com #
 
PREVIOUS NEXT
Tagged: #day #month #javascript #moment
ADD COMMENT
Topic
Name
6+5 =