monthDateRange method

  1. @override
String monthDateRange(
  1. DateTime day1,
  2. DateTime day2,
  3. DateTime date2
)
override

No description provided for @monthDateRange.

In en, this message translates to: '{day1} - {day2} {date2}'

Implementation

@override
String monthDateRange(DateTime day1, DateTime day2, DateTime date2) {
  final intl.DateFormat day1DateFormat = intl.DateFormat.d(localeName);
  final String day1String = day1DateFormat.format(day1);
  final intl.DateFormat day2DateFormat = intl.DateFormat.d(localeName);
  final String day2String = day2DateFormat.format(day2);
  final intl.DateFormat date2DateFormat = intl.DateFormat.yMMMM(localeName);
  final String date2String = date2DateFormat.format(date2);

  return '$day1String - $day2String $date2String';
}