Date Functions
Functions for creating, manipulating, and extracting parts of date values.
- Date.AddDaysAdds a specified number of days to a date value.
- Date.AddMonthsAdds a specified number of months to a date value.
- Date.AddQuartersAdds a specified number of quarters to a date value.
- Date.AddWeeksAdds a specified number of weeks to a date value.
- Date.AddYearsAdds a specified number of years to a date value.
- Date.DayReturns the day of the month from a date value.
- Date.DayOfWeekReturns the day of the week for a given date.
- Date.DayOfWeekNameReturns the name of the day of the week for the given date.
- Date.DayOfYearReturns the day of the year (1–366) for the given date.
- Date.DaysInMonthReturns the number of days in the month of the given date.
- Date.EndOfDayReturns the last moment of the day for the given date or datetime value.
- Date.EndOfMonthReturns the last day of the month for a given date.
- Date.EndOfQuarterReturns the last moment of the quarter containing the given date.
- Date.EndOfWeekReturns the last day of the week containing the given date.
- Date.EndOfYearReturns the last day of the year for a given date.
- Date.FromConverts a value to a date.
- Date.FromTextConverts a text representation of a date to a date value.
- Date.IsInCurrentDayReturns true if the date is today (local time).
- Date.IsInCurrentMonthReturns true if the date falls within the current calendar month.
- Date.IsInCurrentQuarterReturns true if the date falls within the current calendar quarter.
- Date.IsInCurrentWeekReturns true if the date falls within the current calendar week.
- Date.IsInCurrentYearReturns true if the date falls within the current calendar year.
- Date.IsInNextDayReturns true if the date is tomorrow relative to today.
- Date.IsInNextMonthReturns true if the date falls in the next calendar month.
- Date.IsInNextNDaysReturns true if the date falls within the next N days (not including today).
- Date.IsInNextNMonthsReturns true if the date falls within the next N calendar months.
- Date.IsInNextNQuartersReturns true if the date falls within the next N calendar quarters.
- Date.IsInNextNWeeksReturns true if the date falls within the next N calendar weeks.
- Date.IsInNextNYearsReturns true if the date falls within the next N calendar years.
- Date.IsInNextQuarterReturns true if the date falls in the next calendar quarter.
- Date.IsInNextWeekReturns true if the date falls in the next calendar week.
- Date.IsInNextYearReturns true if the date falls in the next calendar year.
- Date.IsInPreviousDayReturns true if the date was yesterday.
- Date.IsInPreviousMonthReturns true if the date falls in the previous calendar month.
- Date.IsInPreviousNDaysReturns true if the date falls within the previous N days (not including today).
- Date.IsInPreviousNMonthsReturns true if the date falls within the previous N calendar months.
- Date.IsInPreviousNQuartersReturns true if the date falls within the previous N calendar quarters.
- Date.IsInPreviousNWeeksReturns true if the date falls within the previous N calendar weeks.
- Date.IsInPreviousNYearsReturns true if the date falls within the previous N calendar years.
- Date.IsInPreviousQuarterReturns true if the date falls in the previous calendar quarter.
- Date.IsInPreviousWeekReturns true if the date falls in the previous calendar week.
- Date.IsInPreviousYearReturns true if the date falls in the previous calendar year.
- Date.IsInYearToDateReturns true if the date falls between January 1 of the current year and today (inclusive).
- Date.IsLeapYearReturns true if the year of the given date is a leap year.
- Date.MonthReturns the month from a date value.
- Date.MonthNameReturns the name of the month for the given date.
- Date.QuarterOfYearReturns the quarter of the year (1–4) for the given date.
- Date.StartOfDayReturns the first moment of the day (midnight) for the given date or datetime value.
- Date.StartOfMonthReturns the first day of the month for a given date.
- Date.StartOfQuarterReturns the first day of the quarter containing the given date.
- Date.StartOfWeekReturns the first day of the week containing the given date.
- Date.StartOfYearReturns the first day of the year for a given date.
- Date.ToRecordReturns a record containing the Year, Month, and Day fields of a date value.
- Date.ToTextConverts a date value to a text string.
- Date.WeekOfMonthReturns the week number within the month (1–6) for the given date.
- Date.WeekOfYearReturns the week number within the year (1–54) for the given date.
- Date.YearReturns the year from a date value.
- #dateCreates a date value from year, month, and day components.