Package hw
Class Date

Public Method toString

String toString()

Overrides:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns Description
String year, month, and day within a single string

Returns year, month, and day of a Date object in one string ("year/month/day"). The Date object is returned from IO.getDate() and will contain the date at the time of the method call, derived from the real-time clock.

Note

Example

Date saveCurrentDate = IO.getDate();

Console.println("stored date: " + saveCurrentDate.toString());

See also:

IO.getDate()
IO.setDate(int, int, int, int)