flutter format datetime in the locale format code example
Example 1: DateFormat local fr flutter
void initState() {
super.initState();
initializeDateFormatting();
}
Example 2: DateFormat local fr flutter
import 'package:intl/intl.dart';
import 'package:intl/date_symbol_data_local.dart';