Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Moment js get first and last day of current month

const startOfMonth = moment().startOf('month').format('YYYY-MM-DD hh:mm');
const endOfMonth   = moment().endOf('month').format('YYYY-MM-DD hh:mm');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Moment #js #day #current #month
ADD COMMENT
Topic
Name
4+9 =