Files
klz-cables.com/.pnpm-store/v10/files/fb/c5b525135c4ad72b8bae9d4c90976dd10a7d81140a1eec7ac36bc2494d8ec2d19530b26d1470ad2cd7ca8299d168134dde731e3254b5c49e2c2a9ec34a186a
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
650 B
Plaintext

import { toDate } from "./toDate.js";
/**
* The {@link getDay} function options.
*/
/**
* @name getDay
* @category Weekday Helpers
* @summary Get the day of the week of the given date.
*
* @description
* Get the day of the week of the given date.
*
* @param date - The given date
* @param options - The options
*
* @returns The day of week, 0 represents Sunday
*
* @example
* // Which day of the week is 29 February 2012?
* const result = getDay(new Date(2012, 1, 29))
* //=> 3
*/
export function getDay(date, options) {
return toDate(date, options?.in).getDay();
}
// Fallback for modularized imports:
export default getDay;