Somebody knows how can I extract from DateTime the name of the day of the week?
ej:
DateTime date = DateTime.now(); String dateFormat = DateFormat('dd-MM-yyyy hh:mm').format(date);
Result -> Friday
Use 'EEEE' as a date pattern
DateFormat('EEEE').format(date); /// e.g Thursday
Don't forget to import
import 'package:intl/intl.dart';
Check this for more info : https://docs.flutter.io/flutter/intl/DateFormat-class.html
1.4m articles
1.4m replys
5 comments
56.9k users