Table of Contents

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

datePart DatePart

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

amount IElement

The number of units to add. Negative values subtract.

date IElement

The 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

datePart DatePart

The component of the date to add.

amount Column

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

date Column

The 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

datePart DatePart

The component of the date to add.

amount int

The integer number of units to add. Negative values subtract.

date Column

The date or datetime column to modify.

DateAdd(DatePart, Column, DateTime)

Initializes a new instance of DateAdd with a column amount and a DateTime literal.

public DateAdd(DatePart datePart, Column amount, DateTime date)

Parameters

datePart DatePart

The component of the date to add.

amount Column

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

date DateTime

The DateTime literal to modify.

DateAdd(DatePart, Column, DateOnly)

Initializes a new instance of DateAdd with a column amount and a DateOnly literal.

public DateAdd(DatePart datePart, Column amount, DateOnly date)

Parameters

datePart DatePart

The component of the date to add.

amount Column

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

date DateOnly

The DateOnly literal to modify.

DateAdd(DatePart, int, DateTime)

Initializes a new instance of DateAdd with an integer amount and a DateTime literal.

public DateAdd(DatePart datePart, int amount, DateTime date)

Parameters

datePart DatePart

The component of the date to add.

amount int

The integer number of units to add. Negative values subtract.

date DateTime

The DateTime literal to modify.

DateAdd(DatePart, int, DateOnly)

Initializes a new instance of DateAdd with an integer amount and a DateOnly literal.

public DateAdd(DatePart datePart, int amount, DateOnly date)

Parameters

datePart DatePart

The component of the date to add.

amount int

The integer number of units to add. Negative values subtract.

date DateOnly

The DateOnly literal to modify.