parse method

DateTime parse (String strDate)

Deserialize an ISO-8601 full-precision extended format representation of date string into DateTime.

Implementation

DateTime parse(String strDate) {
  try {
    return DateTime.parse(strDate);
  } on FormatException {
    return null;
  }
}