toString method

  1. @override
String toString()
override

Returns a string representing the date in ISO 8601 format, YYYY-MM-DD.

Return Value: A String.