I want to output my date like this " Today is Feb 25, 2018 ", it is possible? using intl package?
Asked
Active
Viewed 291 times
-3
-
I guess 'Today is ' needs to be concatenated to the output of date time formatter. You cant get something like that directly – Abhishek Sengupta Dec 10 '20 at 07:35
-
I see. what about "Feb 25, 2018"? it is possible? – chikichikiboom Dec 10 '20 at 07:38
-
DateFormat.yMMMMd().format(your_date_time) Pls check here for ref -> https://pub.dev/documentation/intl/latest/intl/DateFormat-class.html Acutally I am not flutter dev :D , but its straight forward – Abhishek Sengupta Dec 10 '20 at 07:45
-
3Does this answer your question? [How to format DateTime in Flutter](https://stackoverflow.com/questions/51579546/how-to-format-datetime-in-flutter) – RaSha Dec 10 '20 at 08:39
-
yes @R.Shpd. Thank you! – chikichikiboom Dec 10 '20 at 16:17
1 Answers
0
May be you can try to use formatDate
For example:
Text('Today is 'formatDate(checkDate, [dd, '/', mm, '/', yyyy, ' '])

龍が如く
- 199
- 1
- 14