Constructor DateAdd
- Namespace
- YndigoBlue.Velocity.Functions
- Assembly
- YndigoBlue.Velocity.dll
DateAdd(DatePart, IElement, IElement)
Initializes a new instance of DateAdd.
public DateAdd(DatePart datePart, IElement amount, IElement date)
Parameters
datePartDatePartThe component of the date to add (Year, Month, Day, Hour, Minute, or Second).
amountIElementThe number of units to add. Negative values subtract.
dateIElementThe date, datetime, or timestamp column or expression to modify.
DateAdd(DatePart, Column, Column)
Initializes a new instance of DateAdd with a column for both amount and date.
public DateAdd(DatePart datePart, Column amount, Column date)
Parameters
datePartDatePartThe component of the date to add.
amountColumnA column whose value is the number of units to add.
dateColumnThe date or datetime column to modify.
DateAdd(DatePart, int, Column)
Initializes a new instance of DateAdd with an integer amount and a date column.
public DateAdd(DatePart datePart, int amount, Column date)
Parameters
datePartDatePartThe component of the date to add.
amountintThe integer number of units to add. Negative values subtract.
dateColumnThe date or datetime column to modify.
DateAdd(DatePart, Column, DateTime)
public DateAdd(DatePart datePart, Column amount, DateTime date)
Parameters
datePartDatePartThe component of the date to add.
amountColumnA column whose value is the number of units to add.
dateDateTimeThe DateTime literal to modify.
DateAdd(DatePart, Column, DateOnly)
public DateAdd(DatePart datePart, Column amount, DateOnly date)
Parameters
datePartDatePartThe component of the date to add.
amountColumnA column whose value is the number of units to add.
dateDateOnlyThe DateOnly literal to modify.
DateAdd(DatePart, int, DateTime)
public DateAdd(DatePart datePart, int amount, DateTime date)
Parameters
datePartDatePartThe component of the date to add.
amountintThe integer number of units to add. Negative values subtract.
dateDateTimeThe DateTime literal to modify.
DateAdd(DatePart, int, DateOnly)
public DateAdd(DatePart datePart, int amount, DateOnly date)