save before flutter upgrade
This commit is contained in:
9
lib/functions/date_time_format.dart
Normal file
9
lib/functions/date_time_format.dart
Normal file
@@ -0,0 +1,9 @@
|
||||
import 'package:intl/intl.dart';
|
||||
|
||||
String dateTimeFormat(DateTime? date) {
|
||||
if (date == null) {
|
||||
return '-';
|
||||
}
|
||||
final formato = DateFormat('MM-dd-yyyy HH:mm:ss');
|
||||
return formato.format(date);
|
||||
}
|
||||
Reference in New Issue
Block a user