How would I either reformat, convert or extract just the date and time from this string in Dart/Flutter? The String comes from the default timestamp in my MySQL database;
2021-08-11T11:38:09.000Z
So what I need is something like this;
2021-08-11 11:38
I was thinking perhaps something like;
final String? shortime = timestamp?.replaceAll(RegExp(''), '') ?? '';
But I'm not sure what to use as the regex.