date - Check if year is leap year in javascript - Stack Overflow

PHOTO EMBED

Wed Aug 10 2022 16:49:15 GMT+0000 (Coordinated Universal Time)

Saved by @Sirarg #javascript

function leapYear(year)
{
  return ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0);
}
content_copyCOPY

https://stackoverflow.com/questions/16353211/check-if-year-is-leap-year-in-javascript