Rocky_Mountain_Vending/.pnpm-store/v10/files/fb/c5b525135c4ad72b8bae9d4c90976dd10a7d81140a1eec7ac36bc2494d8ec2d19530b26d1470ad2cd7ca8299d168134dde731e3254b5c49e2c2a9ec34a186a
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

30 lines
650 B
Text

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;