monthYear property

String monthYear

Formats the DateTime into a string only containing the month and year.

Example:

print(DateTime.now().monthYear); // Output: "April 2023"

Implementation

String get monthYear => DateFormats.monthYear.format(this);