DateFormatExtention extension

Date Manipulation

on

Properties

getDurationName String

Available on DateTime, provided by the DateFormatExtention extension

Convert date to today / tomorrow / yesterday
no setter

Methods

getRelated(DateTime? previousDate) String?

Available on DateTime, provided by the DateFormatExtention extension

In list of dates if all other date are same it returns null For Eg To add title group by date all others data having same date should have same title so one title is enough for that this extentions can be used
isSameDate(DateTime other) bool

Available on DateTime, provided by the DateFormatExtention extension

Checks if same date or not
toFormattedString([String? newPattern]) String

Available on DateTime, provided by the DateFormatExtention extension

converts DateTime to yyyy-MM-dd format or new pattern as wish