Skip to content

today

The today() function returns the start of the current day (midnight) as a TheDate.

Interactive example

Syntax

typescript
function today(): TheDate

Parameters

None.

Return value

A TheDate set to midnight of the current day.

See also

Released under the MIT license.