intl package and date formatting strange behaviour

intl: ^0.15.7

I’ve the same issue to the current Intl version so I’ve solved with

these imports:

import 'package:intl/intl.dart';
import 'package:intl/date_symbol_data_local.dart';

and the code:

initializeDateFormatting();
DateTime now = DateTime.now();
var dateString = DateFormat('dd-MM-yyyy').format(now);
final String configFileName="lastConfig.$dateString.json";

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)