The Java 8 date / time API, java.time , has a MonthDay class to represent the month and day together. Thus, the Joda-Time library offers a MonthDay class.
In java.time, a method is MonthDay.toString()declared as:
Displays this month as a string, for example, -12-03.
In most classes in java.time, their method toString()outputs a standard representation of the ISO 8601 concept that they represent ( YYYY-MM-DDfor LocalDateexample), so I would expect this format to --MM-DDalso be standard.
But I could not find it in the ISO 8601 standard.
Is the month-to-day concept defined by ISO 8601, and if so, the --MM-DDstandard format?
Reference Information. I am developing a date / time API in another language.
source
share