EasyDateTimeUtilities extension
Extension providing date utility methods for EasyDateTime.
- on
Properties
- dateOnly → EasyDateTime
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returns a new EasyDateTime with time set to 00:00:00.000.no setter - dayOfYear → int
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returns the Gregorian day of year (1-366) for the local date.no setter - daysInMonth → int
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returns the number of days in the current month.no setter - endOfDay → EasyDateTime
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returns end of the day (23:59:59.999999).no setter - endOfMonth → EasyDateTime
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returns the last day of the current month at 23:59:59.999999.no setter - isFuture → bool
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returnstrueif this datetime is after the current time.no setter - isLeapYear → bool
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returnstrueif the current year is a leap year.no setter - isPast → bool
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returnstrueif this datetime is before the current time.no setter - isThisMonth → bool
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returnstrueif this datetime falls within the current month.no setter - isThisWeek → bool
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returnstrueif this datetime falls within the current week.no setter - isThisYear → bool
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returnstrueif this datetime falls within the current year.no setter - isToday → bool
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returnstrueif this date is today (ignoring time).no setter - isTomorrow → bool
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returnstrueif this date is tomorrow (ignoring time).no setter - isWeekday → bool
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returnstrueif this date is a weekday (Monday through Friday).no setter - isWeekend → bool
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returnstrueif this date is a weekend day (Saturday or Sunday).no setter - isYesterday → bool
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returnstrueif this date is yesterday (ignoring time).no setter - quarter → int
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returns the quarter of the year (1-4).no setter - startOfDay → EasyDateTime
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Alias for dateOnly. Returns start of the day (00:00:00.000).no setter - startOfMonth → EasyDateTime
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returns the first day of the current month at 00:00:00.no setter - tomorrow → EasyDateTime
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returns the next calendar day at the same local time.no setter - weekOfYear → int
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returns the ISO 8601 week number (1-53) for the local date.no setter - yesterday → EasyDateTime
-
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returns the previous calendar day at the same local time.no setter
Methods
-
addCalendarDays(
int days) → EasyDateTime -
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Addsdayscalendar days to this datetime, preserving the time of day. -
subtractCalendarDays(
int days) → EasyDateTime -
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Subtractsdayscalendar days from this datetime, preserving the time. -
toDateString(
) → String -
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returns a date-only string in YYYY-MM-DD format. -
toTimeString(
) → String -
Available on EasyDateTime, provided by the EasyDateTimeUtilities extension
Returns a time-only string in HH:MM:SS format.