New to Telerik Document Processing? Start a free 30-day trial

Year

Class

Implements the YEAR function, extracting the year component from a date serial number and returning an integer 1900–9999.

Definition

Constructors

Initializes a new YEAR function instance for extracting year components from date values.

C#
public Year()

Fields

The name of the function.

C#
public static readonly string FunctionName

Properties

Gets the function info.

C#
public override FunctionInfo FunctionInfo { get; }
Property Value:

The function info as FunctionInfo.

Overrides: FunctionBase.FunctionInfo

Gets the name of the function.

C#
public override string Name { get; }
Property Value:

The name as String.

Overrides: FunctionBase.Name

Methods

Virtual method evaluating the function with System.Object arguments array.

C#
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<double> context)
Parameters:contextFunctionEvaluationContext<double>

The context.

Returns:

RadExpression

Functions result as RadExpression.

Overrides: FunctionWithSameTypeArguments<double>.EvaluateOverride(FunctionEvaluationContext<double>)