Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/date_fns/index.js>isLeapYear

date-fns Deno package
Very Popular
Go to Latest
function isLeapYear
import { isLeapYear } from "https://deno.land/x/date_fns@v2.12.0/index.js";

Examples

// Is 1 September 2012 in the leap year? var result = isLeapYear(new Date(2012, 8, 1)) //=> true

Parameters

dirtyDate
  • the date to check