yearMonth property
String
get
yearMonth
Formats the current number as a date string in 'yyyy-MM' format.
Returns a string representation of the date in 'yyyy-MM' format.
Implementation
String get yearMonth => DateFormats.yearMonth.format(toDateTime);