DateTimeExtention extension

on

Methods

firstDayOfMonth() DateTime

Available on DateTime, provided by the DateTimeExtention extension

Return first day of the month
firstDayOfWeek({bool startWeekOnMonday = true}) DateTime

Available on DateTime, provided by the DateTimeExtention extension

Return first day of the week
isSameDay(DateTime other, {bool ignoreTime = true, bool ignoreTimezone = true}) bool

Available on DateTime, provided by the DateTimeExtention extension

Return if date is the same day as other
isSameMonth(DateTime other, {bool ignoreTime = true, bool ignoreTimezone = true, bool ignoreDay = true}) bool

Available on DateTime, provided by the DateTimeExtention extension

Return if date is the same month as other
isSameYear(DateTime other, {bool ignoreTime = true, bool ignoreTimezone = true, bool ignoreDay = true, bool ignoreMonth = true}) bool

Available on DateTime, provided by the DateTimeExtention extension

Return if date is the same year as other
lastDayOfMonth() DateTime

Available on DateTime, provided by the DateTimeExtention extension

Return last day of the month
lastDayOfWeek({bool startWeekOnMonday = true}) DateTime

Available on DateTime, provided by the DateTimeExtention extension

Return last day of the week