how to get the name of the day in flutter

181

import 'package:intl/intl.dart';

void main() {
  var date = DateTime.now();
  print(DateFormat('EEEE').format(date)); // Sunday

}

Comments

Submit
0 Comments