Date
Date( str )
Date( str )
Date( str )
Date( str )
date( str )
Date( str )
Description
The Date
function constructs a Date from an ISO 8601
formatted date string.
Date only accepts a date string. An error occurs if you
include any time information.
|
Returns
A Date type which represents the converted string.
Examples
The following query returns a Date constructed from the provided string:
FaunaDate(1970-01-01 12:00:00 AM)
{0 62135596800 <nil>}
1970-01-01
Date("1970-01-01")
1970-01-01
1970-01-01
Was this article helpful?
We're sorry to hear that.
Tell us how we can improve!
Visit Fauna's Discourse forums
or email docs@fauna.com
Thank you for your feedback!