standardDate method

DateTime standardDate()

Implementation

DateTime standardDate() {
  try {
    final DateFormat formatter = DateFormat('yyyy-MM-dd HH:mm:ss');
    return formatter.parse(this!);
  } catch (e) {
    print('${e}');
    return DateTime.now();
  }
}