getMonth
import { getMonth } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// Which month is 29 February 2012?
const result = getMonth(new Date(2012, 1, 29))
//=> 1
function getMonth<DateType extends Date>(date: DateType | number | string): number;