'What kind of date format is this flutter?
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
Solution 1:[1]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | esentis |
