Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get the last day of the month in js

let today = new Date();
let lastDayOfMonth = new Date(today.getFullYear(), today.getMonth()+1, 0);
let numberOfDays = lastDayOfMonth.getDate();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #day #month #js
ADD COMMENT
Topic
Name
5+7 =