toString()

Convert a Date to a String.

Signature

toString(): String

Description

Convert calling date object to a String representation.

Parameters

None

Return value

Type Description

String

String representation of the calling date object.

Examples

let d = Date("2022-10-20")
d.toString() 
"2022-10-20"

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!