DateExtensions extension

adds utility methods to DateTime

on

Properties

dateOnly DateTime

Available on DateTime, provided by the DateExtensions extension

date only
no setter

Methods

copyWith({int? year, int? month, int? day, int? hour, int? minute, int? second, int? millisecond, int? microsecond}) DateTime

Available on DateTime, provided by the DateExtensions extension

copy with
toIso8601Date() String

Available on DateTime, provided by the DateExtensions extension

converts to Iso8601 date date only (yyyy-MM-dd)