Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

isExists

import { isExists } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// For the valid date:
const result = isExists(2018, 0, 31)
//=> true
@example
// For the invalid date:
const result = isExists(2018, 1, 31)
//=> false
function isExists(
year: number,
month: number,
day: number,
): boolean;
§
isExists(year: number, month: number, day: number): boolean
[src]

§Parameters

§
year: number
[src]
  • The year of the date to check
§
month: number
[src]
  • The month of the date to check
§
day: number
[src]
  • The day of the date to check

§Return Type

§
boolean
[src]

true if the date exists