Reputation: 41
I have tried to format date using seperators Using intl packags but how should I format date like 20201227
Upvotes: 0
Views: 124
Reputation: 1051
Simply: DateFormat('yyyyMMdd').format(date)
DateFormat('yyyyMMdd').format(date)
Upvotes: 2