Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert ISO8601 in flutter [duplicate]

How to convert below ISO8601 format into just month and day.

2022-08-29T10:33:49.283Z

to

29/8
like image 921
Digamber negi Avatar asked Nov 23 '25 17:11

Digamber negi


1 Answers

you can use intl

DateTime now = DateTime.parse('2022-08-29T10:33:49.283Z');
var formatter =  DateFormat('dd/MM');
var formatted = formatter.format(now);
print(formatted);
like image 55
linkkader Avatar answered Nov 28 '25 15:11

linkkader



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!