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-month.

Get the day-of-week.

Get the day-of-year.

Get the Date month.

Get the Date year.

Static methods

Method Description

Construct a Date from a 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!