toDate method

DateTime toDate()

converts to DateTime without time component

Implementation

DateTime toDate() => toDateTime().dateOnly;