today
Returns the current date and time in a specified format in local time.
today()
Returns the current date and time in a specified format in local time.
Signature
static today(options?: FormatOptions): stringParameters
options: Formatting options
interface FormatOptions {
format?: string;
useUTC?: boolean;
}Return Type
string - Formatted current date
Example
playground.ts
Last updated: Thu, May 21, 2026 07:12:18AM (UTC)
