yearMonthDayWeekdayTime static method

DateTimeFormatter yearMonthDayWeekdayTime({
  1. Locale? locale,
  2. DateTimeAlignment? alignment,
  3. DateTimeLength? length,
  4. TimePrecision? timePrecision,
  5. YearStyle? yearStyle,
})

Formatting the year, month, day, weekday, and time.

Example:

import 'package:intl4x/datetime_format.dart';

void main() {
  final date = DateTime(2021, 12, 17, 4, 0, 42);
  print(DateTimeFormat.yearMonthDayWeekdayTime().format(date)); // Output: 'Fri, Dec 17, 2021, 4:00 AM'
}

Implementation

static DateTimeFormatter yearMonthDayWeekdayTime({
  Locale? locale,
  DateTimeAlignment? alignment,
  DateTimeLength? length,
  TimePrecision? timePrecision,
  YearStyle? yearStyle,
}) => DateTimeFormatImpl.build(locale ?? findSystemLocale()).ymdet(
  alignment: alignment,
  length: length,
  timePrecision: timePrecision,
  yearStyle: yearStyle,
);