DateUtil class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
decrementMonth(DateTime date)
→ DateTime
-
-
getAsTime(DateTime? date, {bool verbose = true})
→ String
-
-
getBeginingOfPeriod(DateTime todayDate, int numberOfElements, DateElementType elementType, {String? weekDay})
→ DateTime
-
-
getDay(String inputDateStr)
→ int
-
-
getDaysOfMonth(int mm, int yy)
→ int
-
-
getEndOfPeriod(DateTime todayDate, int numberOfElements, DateElementType elementType, {String? weekDay})
→ DateTime
-
-
getEndOfPeriodWithoutWeekends(DateTime currentDate, int numberOfDays)
→ DateTime
-
-
getEndOfPeriodWithoutWeekendsAndHolidays(DateTime startDate, int numberOfDays, List<HolidayDayDTO> holidayDayList)
→ DateTime
-
-
getMonth(String inputDateStr)
→ int
-
-
getMonthDate(DateTime date, {bool inWords = false})
→ String
-
-
getNumberOfDays(DateTime? previousDate, DateTime? currentDate)
→ int
-
-
getNumberOfDaysWithoutWeekends(DateTime? startDate, DateTime? endDate)
→ int
-
-
getNumberOfDaysWithoutWeekendsAndHolidays(DateTime startDate, DateTime endDate, List<HolidayDayDTO> holidayDayList)
→ int?
-
-
getServerDateTimeMillis(DateTime? inputDate)
→ String
-
-
getStandardDate(DateTime? date, {bool verbose = false})
→ String
-
-
getTimeDuration(DateTime date)
→ String?
-
-
getTimeOnly(DateTime date)
→ String?
-
-
getYear(String inputDateStr)
→ int
-
-
incrementMonth(DateTime date)
→ DateTime
-
-
isHoliday(DateTime localDate, List<HolidayDayDTO> holidayDayList, bool isWeekend)
→ bool
-
-
isLeapYear(int year)
→ bool
-
-
isMoreRecent(DateTime? dateObj1, DateTime? dateObj2)
→ bool
-
-
isMoreRecentOrSame(String? date1, String? date2)
→ bool
-
-
isSameDate(String? date1, String? date2)
→ bool
-
-
isSameDateAndTime(String? date1, String? date2)
→ bool
-
-
isSameDateByMonthAndDay(DateTime date1, DateTime date2)
→ bool
-
-
isSameDateObj(DateTime? dateObj1, DateTime? dateObj2)
→ bool
-
-
padAsDateElement(String element)
→ String?
-
-
parseDate(String? dateString)
→ DateTime?
-
-
performHoldayCount(int numberOfDays, List<HolidayDayDTO> holidayDayList, int nextYear, int nextMonth, int nextDay)
→ int
-
-
setDateTime(DateTime dateTime, int hour24, int minute)
→ DateTime
-
-
toMobileJsonDate(DateTime date)
→ String?
-