Home > Blockchain >  DIsplaying Date in custom format -Flutter
DIsplaying Date in custom format -Flutter

Time:10-25

What's the best way to display current date on flutter using the following format example :

October 25,Monday

CodePudding user response:

Definetely

 DateFormat('MMMM d,EEEE').format(DateTime.now())

But make sure you also import the following

import 'package:intl/intl.dart';
  • Related