toDateTime method

DateTime toDateTime()

Attempt to convert a String to a DateTime.

Implementation

DateTime toDateTime() => DateTime.parse(this ?? "");