<aside> <img src="/icons/info-alternate_lightgray.svg" alt="/icons/info-alternate_lightgray.svg" width="40px" /> Check whether a year is a leap year.

</aside>

Entries

Entries

Leap Year

let(
	y, prop("Year"),
	y ? y / 400 % 1 == 0 || y / 4 % 1 == 0 && y / 100 % 1 != 0 : false
)

Leap Year (From Date)

let(
	y, prop("Date").year(),
	y ? y / 400 % 1 == 0 || y / 4 % 1 == 0 && y / 100 % 1 != 0 : false
)

Days This Year

lets(
	y, now().year(),
	l, y ? y / 400 % 1 == 0 || y / 4 % 1 == 0 && y / 100 % 1 != 0 : false,
	l ? 366 : 365
)

<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1649d2f9-1b45-478a-86b4-341fbe27e06f/benny.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1649d2f9-1b45-478a-86b4-341fbe27e06f/benny.png" width="40px" /> By BenLatest • Was this helpful? Please consider buying me a coffee. Cheers!

</aside>