Skip to main content

getDay

Returns the day of the week for the given date.

  • import the method
import { getDay } from "nodelpers";
  • params
date?: TDate;
fullName: boolean;

TDate: number | string | Date;
  • usage
getDay(); // current day (say 'Sun')
getDay("2025-03-11"); // 'Tue'
getDay("2025-03-11", true); // 'Tuesday'