Skip to content

yesterday

The yesterday() function returns now() - 1 day as a TheDate.

Interactive example

Syntax

typescript
function yesterday(): TheDate

Parameters

None.

Return value

A TheDate representing the previous day at the same hour.

See also

Sources

Released under the MIT license.