Skip to main content
Module

x/date_fns/index.js>getMonth

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

Examples

// Which month is 29 February 2012? var result = getMonth(new Date(2012, 1, 29)) //=> 1

Parameters

dirtyDate
  • the given date