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

Date methods and properties.

Description

Date functions are provided to represent dates without a time.

Instance properties

Method Description

Get the day of the month from a Date.

Get the day of the week from a Date.

Get the day of the year from a Date.

Get the month of a Date.

Get the year of a Date.

Static methods

Method Description

Construct a Date from a ISO 8601 date String.

Construct a Date from a date String.

Get the current UTC Date.

Instance methods

Method Description

Add number of days to a Date.

Get the difference between two Dates.

Subtract number of days from a Date.

Convert a Date to a String.

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!