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();
 
PREVIOUS NEXT
Tagged: #day #month #js
ADD COMMENT
Topic
Name
9+1 =