Skip to main content
Module

x/date_fns/getDay/index.ts>default

date-fns Deno package
Very Popular
Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.22.1/getDay/index.ts";

Examples

// Which day of the week is 29 February 2012? const result = getDay(new Date(2012, 1, 29)) //=> 3

Parameters

dirtyDate: Date | number
  • the given date

Returns

number

the day of week, 0 represents Sunday