Table of Contents

Constructor Year

Namespace
YndigoBlue.Velocity.Functions
Assembly
YndigoBlue.Velocity.dll

Year(IElement)

Initializes a new instance of YEAR for a single element.

public Year(IElement element)

Parameters

element IElement

The date or datetime element to extract the year from.

Year(IEnumerable<IElement>)

Initializes a new instance of YEAR for multiple elements.

public Year(IEnumerable<IElement> elements)

Parameters

elements IEnumerable<IElement>

The date or datetime elements to extract the year from.

Year(Column)

Initializes a new instance of YEAR for a column.

public Year(Column column)

Parameters

column Column

The date or datetime column to extract the year from.

Year(DateTime)

Initializes a new instance of YEAR for a DateTime literal value.

public Year(DateTime dateTime)

Parameters

dateTime DateTime

The DateTime value to extract the year from.

Year(DateOnly)

Initializes a new instance of YEAR for a DateOnly literal value.

public Year(DateOnly value)

Parameters

value DateOnly

The DateOnly value to extract the year from.

Year(DateTimeOffset)

Initializes a new instance of YEAR for a DateTimeOffset literal value.

public Year(DateTimeOffset value)

Parameters

value DateTimeOffset

The DateTimeOffset value to extract the year from.