date property

DateTime get date

Returns only year, month and day

Implementation

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