could you please help me with the data which comes from API. It's a date-time data : "2022-03-30T18:56:17.33Z"
What is this data format and how can I turn it into a readable thing
CodePudding user response:
You can try using the DateFormat
from intl
:
import 'package:intl/intl.dart';
void main() {
print(
DateFormat("dd/MM/yyyy hh:mm").format(
DateTime.parse("2022-03-30T18:56:17.33Z"),
),
);
}
The above prints :
30/03/2022 06:56