Date.today()

Get the current UTC Date.

Signature

Date.today(): Date

Description

The Date.today() method gets the current Date. The returned Date is the current UTC date.

Parameters

None

Return value

Type Description

Date

Object representing the Current year, month, and day, in UTC.

Examples

Get the current date:

Date.today()
"2022-10-27"

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!