portableSql
AddDaysToDate Portable SQL Function
Syntax
AddDaysToDate as D (Date as D, NrOfDays as N)
Arguments
- DateDate
A field or value.
- NrOfDaysNumeric
Number of days to add.
Returns
- ResultDate
Returns a date NrOfDays ahead of Date.
Description
Get the date value NrOfDays days ahead of Date.
Discussion
The AddDaysToDate Portable SQL function computes a new date by adding days to a date field.
AddDaysToDate() function executed on the Northwind Access database
SELECT FIRST 1 CurrentDate() AS Now, AddDaysToDate(CurrentDate(), 14) AS Expr1 FROM Orders =10/10/2019 12:00:00 00 am|10/24/2019 12:00:00 00 am