toDateTime method

DateTime? toDateTime()

Implementation

DateTime? toDateTime() {
  try {
    final date = DateTime.fromMillisecondsSinceEpoch(this, isUtc: true);
    return date;
  } catch (ex) {
    jLog.e(ex);
    return null;
  }
}