DateTimeOperations extension

on

Methods

endOfDay() DateTime

Available on DateTime, provided by the DateTimeOperations extension

Create a new date setting hour to 23, minute to 59, and second to 59.
firstDayOfMonth() DateTime

Available on DateTime, provided by the DateTimeOperations extension

Create a new first date of this month.
lastDayOfMonth() DateTime

Available on DateTime, provided by the DateTimeOperations extension

Create a new last date of this month.
nextMonth() DateTime

Available on DateTime, provided by the DateTimeOperations extension

Create a new date with next month values.
nextWeek() DateTime

Available on DateTime, provided by the DateTimeOperations extension

Create a new date with next week values.
nextYear() DateTime

Available on DateTime, provided by the DateTimeOperations extension

Create a new date with next year values.
onlyDate() DateTime

Available on DateTime, provided by the DateTimeOperations extension

Create a new date with only date value (0 for hour, minute and second).
onlyTime() DateTime

Available on DateTime, provided by the DateTimeOperations extension

Create a new date with only time value (0 for year, month and day).
previousMonth() DateTime

Available on DateTime, provided by the DateTimeOperations extension

Create a new date with previous month values.
previousWeek() DateTime

Available on DateTime, provided by the DateTimeOperations extension

Create a new date with previous week values.
previousYear() DateTime

Available on DateTime, provided by the DateTimeOperations extension

Create a new date with previous year values.
startOfDay() DateTime

Available on DateTime, provided by the DateTimeOperations extension

Create a new date setting hour, minute and second to 0.
tomorrow() DateTime

Available on DateTime, provided by the DateTimeOperations extension

Create a new date with tomorrow values.
yesterday() DateTime

Available on DateTime, provided by the DateTimeOperations extension

Create a new date with yesterday values.