date property

DateTime date

Returns only year, month and day

Implementation

DateTime get date => isUtc ? DateTime.utc(year, month, day) : DateTime(year, month, day);