ChronosChronos

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): string

Parameters

  • 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)

On this page