Table of Contents

Class Month

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

Represents the MONTH date extraction function that returns the month component of a date.

public class Month : Function, IElement, ICheckItem, IDefaultItem, IFilterItem
Inheritance
Month
Implements

Remarks

The MONTH function extracts the month as an integer (1-12) from a date or datetime value. For example, MONTH('2024-03-15') returns 3. This is useful for grouping data by month, seasonal analysis, or filtering records by specific months.

Constructors

Month(IEnumerable<IElement>)

Initializes a new instance of MONTH for multiple elements.

Month(IElement)

Initializes a new instance of MONTH for a single element.