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");
Returns the current date and time as a Date
object.
import { getDate } from "nodelpers";
date?: number | string | Date;
getDate(); // current date object
getDate("2025-03-11");