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