Public Access
13 lines
369 B
Dart
13 lines
369 B
Dart
String timeOf(DateTime fullDT) {
|
|
// doing it this way so we always get two digits on the hour
|
|
String full = fullDT.toString();
|
|
List<String> splits = full.split(" ")[1].split(":");
|
|
String time = '${splits[0]}:${splits[1]}';
|
|
return time;
|
|
}
|
|
|
|
String dateOf(DateTime fullDT) {
|
|
String full = fullDT.toString();
|
|
String date = full.split(" ")[0];
|
|
return date;
|
|
} |