Skip to main content

getDate

Returns the current date and time as a Date object.

  • import the method
import { getDate } from "nodelpers";
  • params
date?: number | string | Date;
  • usage
getDate(); // current date object
getDate("2025-03-11");