dateOnly property
DateTime
get
dateOnly
Provides a DateTime instance with only the date component, excluding time. Example: final date = DateTime().now(); // 26-07-2020 16:54:23 date.dateOnly // 26-07-2020 Useful for date comparisons without time influence.
Implementation
DateTime get dateOnly => DateTime(year, month, day);