Realank / flutter_datetime_picker

a date time picker in flutter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to show DD MM YYYY format. It must be 01 January 2022

dhairya-lakhera opened this issue · comments

Try This!

//For DD MM YYYY
String convertDate(String? passDate){
return '${formatDate(DateTime.parse(passDate!), [
dd,
' ',
mm,
' ',
yyyy
])}';
}

You can create a Fork and edit format in file lib/src/date_format.dart