onlyDate method

DateTime onlyDate()

Create a new date with only date value (0 for hour, minute and second).

Implementation

DateTime onlyDate() => _copyWith(
      hour: 0,
      minute: 0,
      second: 0,
      millisecond: 0,
      microsecond: 0,
    );