Files
klz-cables.com/.pnpm-store/v10/files/ae/98e955a4805770a9c45fd94bfd82b04d793cd5c61466abf89e96d5485ab81c20c75a2458081f8126ce8c203c909dbc576a5c88c8133d38abaebdffbc32036f
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

31 lines
627 B
Plaintext

import { toDate } from "./toDate.js";
/**
* The {@link getMonth} function options.
*/
/**
* @name getMonth
* @category Month Helpers
* @summary Get the month of the given date.
*
* @description
* Get the month of the given date.
*
* @param date - The given date
* @param options - An object with options
*
* @returns The month index (0-11)
*
* @example
* // Which month is 29 February 2012?
* const result = getMonth(new Date(2012, 1, 29))
* //=> 1
*/
export function getMonth(date, options) {
return toDate(date, options?.in).getMonth();
}
// Fallback for modularized imports:
export default getMonth;