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

Days

Class

Implements the DAYS function that calculates the number of days between two dates by subtracting start date from end date.

Definition

Constructors

Initializes a new instance of the Days function that calculates the difference in days between two dates.

C#
public Days()

Fields

The name of the function.

C#
public static readonly string FunctionName

Properties

Conversion rules specific to the DAYS function, treating text dates as errors in direct arguments.

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

The argument conversion rules as ArgumentConversionRules.

Overrides: NumbersInFunction.ArgumentConversionRules

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 "DAYS" as recognized in formulas.

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

The name as String.

Overrides: FunctionBase.Name

Methods

Evaluates the DAYS function by subtracting the start date from the end date to calculate the number of days between them, returning #NUM! error for negative or out-of-range 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>)