Check out v4 of the Fauna CLI

v4 of the Fauna CLI is now in beta.

The new version introduces enhancements to the developer experience, including an improved authentication workflow. To get started, check out the CLI v4 quick start.

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()
Date("2099-06-24")

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!