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

Day

Class

Implements the DAY function that extracts the day component (1-31) from a date serial number.

Definition

Constructors

Initializes a new instance of the Day function that extracts the day component from dates.

C#
public Day()

Fields

The name of the function.

C#
public static readonly string FunctionName

Properties

Metadata describing the function's parameters and description.

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

The function info as FunctionInfo.

Overrides: FunctionBase.FunctionInfo

The function name "DAY" as recognized in formulas.

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

The name as String.

Overrides: FunctionBase.Name

Methods

Evaluates the DAY function by extracting the day component from the date serial number argument, returning #NUM! error for negative or invalid dates.

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>)