Skip to main content

getFullDate

Formats the current date according to the specified format.

  • import the method
import { getFullDate } from "nodelpers";
  • params
format: TDateFormat;
date?: TDate;

TDateFormat = "local" | "iso" | "utc";
TDate = number | string | Date;
  • usage
getFullDate("local");
getFullDate("iso");
getFullDate("utc");