DateTimeExtensions extension

on

Properties

isFirstDayOfMonth bool
no setter
isLastDayOfMonth bool
no setter

Methods

addYear() DateTime
copyWith({int? year, int? month, int? day, int? hour, int? minute, int? second, int? millisecond, int? microsecond}) DateTime
dateTimeDifference(DateTime date) DateTimeDifference
diff() Duration
diffInDays(DateTime date) int
formatDate({String format = 'd MMMM'}) String
formatTime({String format = 'HH:mm'}) String
isBetween(DateTime minDate, DateTime maxDate) bool
isSameDay(DateTime? other) bool
isSameDayOrAfter(DateTime other) bool
isSameDayOrBefore(DateTime other) bool
maxTime() DateTime
mergeWithDate(DateTime date) DateTime
mergeWithTime(DateTime time) DateTime
minTime() DateTime