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
elementIElementThe 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
elementsIEnumerable<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
columnColumnThe 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
dateTimeDateTimeThe 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
valueDateOnlyThe 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
valueDateTimeOffsetThe DateTimeOffset value to extract the year from.