removeSeconds property
DateTime
get
removeSeconds
Returns DateTime
object without second
and smaller.
New instance will have anything smaller than minute
as 0
.
final dateOnly = DateTime.now(); // 16-09-2023 16:44:26:234567Z
dateOnly.onlyDate; // 16-09-2023 16:44:00:000000Z
Implementation
DateTime get removeSeconds => DateTime(year, month, day, hour, minute);