toString

public static String toString(YearMonth value)

Converts the passed value into a ISO-8601 year-month string, such as "2018-06".

See also