weekday static method
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);