Skip to main content
Module

x/date_fns/isMatch/index.js>default

date-fns Deno package
Very Popular
Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.22.1/isMatch/index.js";

Examples

// Match 11 February 2014 from middle-endian format: var result = isMatch('02/11/2014', 'MM/dd/yyyy') //=> true

// Match 28th of February in Esperanto locale in the context of 2010 year: import eo from 'date-fns/locale/eo' var result = isMatch('28-a de februaro', "do 'de' MMMM", { locale: eo }) //=> true

Parameters

dateString
  • the date string to verify
formatString
  • the string of tokens
dirtyOptions