Class Year
- Namespace
- YndigoBlue.Velocity.Functions
- Assembly
- YndigoBlue.Velocity.dll
Represents the YEAR date extraction function that returns the year component of a date.
public class Year : Function, IElement, ICheckItem, IDefaultItem, IFilterItem
- Inheritance
-
Year
- Implements
Remarks
The YEAR function extracts the year as an integer from a date or datetime value. For example, YEAR('2024-03-15') returns 2024. This is useful for grouping data by year, filtering by year, or performing year-based calculations and comparisons.
Constructors
- Year(IEnumerable<IElement>)
Initializes a new instance of YEAR for multiple elements.
- Year(IElement)
Initializes a new instance of YEAR for a single element.