tryToDate method

DateTime? tryToDate()

converts to DateTime without time component

Implementation

DateTime? tryToDate() => tryToDateTime()?.dateOnly;