Table of Contents

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

datePart DatePart

The component of the date to subtract (Year, Month, Day, Hour, Minute, or Second).

amount IElement

The number of units to subtract.

date IElement

The 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

datePart DatePart

The component of the date to subtract.

amount Column

A column whose value is the number of units to subtract.

date Column

The 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

datePart DatePart

The component of the date to subtract.

amount int

The integer number of units to subtract.

date Column

The 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

datePart DatePart

The component of the date to subtract.

amount Column

A column whose value is the number of units to subtract.

date DateTime

The 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

datePart DatePart

The component of the date to subtract.

amount Column

A column whose value is the number of units to subtract.

date DateOnly

The 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

datePart DatePart

The component of the date to subtract.

amount int

The integer number of units to subtract.

date DateTime

The 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)

Parameters

datePart DatePart

The component of the date to subtract.

amount int

The integer number of units to subtract.

date DateOnly

The DateOnly literal to modify.