Skip to content

Instantly share code, notes, and snippets.

@FreePhoenix888
Created October 2, 2020 09:49
Show Gist options
  • Save FreePhoenix888/c4da15d0b9572095d388d5d62c1ffd21 to your computer and use it in GitHub Desktop.
Save FreePhoenix888/c4da15d0b9572095d388d5d62c1ffd21 to your computer and use it in GitHub Desktop.
function getLastDayOfMonth(year, month) {
let date = new Date(year, month + 1, 0);
return date.getDate();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment