Converts the string to a DateTime object. Returns null if parsing fails.
DateTime? toDate() => DateTime.tryParse(this);