weekday static method

DateTimeFormatter weekday({
  1. Locale? locale,
  2. DateTimeLength? length,
})

Formatting just the weekday.

Example:

import 'package:intl4x/datetime_format.dart';

void main() {
  final date = DateTime(2021, 12, 17, 4, 0, 42);
  print(DateTimeFormat.weekday().format(date)); // Output: 'Friday'
}

Implementation

static DateTimeFormatter weekday({Locale? locale, DateTimeLength? length}) =>
    DateTimeFormatImpl.build(locale ?? findSystemLocale()).e(length: length);