DateTransformation extension

on

Properties

date DateTime
Returns only year, month and day
no setter

Methods

copyWith({int? year, int? month, int? day, int? hour, int? minute, int? second, int? millisecond, int? microsecond}) DateTime
differenceInDays(DateTime other) int
Returns difference between two dates in days
differenceInHours(DateTime other) int
Returns difference between two dates in hours
differenceInMinutes(DateTime other) int
Returns difference between two dates in minutes
differenceInSeconds(DateTime other) int
Returns difference between two dates in seconds
max(DateTime other) DateTime
Returns a later date
min(DateTime other) DateTime
Returns the earliest date