Days
Implements the DAYS function that calculates the number of days between two dates by subtracting start date from end date.
Definition
Namespace:Telerik.Documents.Spreadsheet.Expressions.Functions
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class Days : NumbersInFunction
Inheritance: objectFunctionBaseFunctionWithArgumentsFunctionWithSameTypeArguments<double>NumbersInFunctionDays...
Inherited Members
Constructors
Initializes a new instance of the Days function that calculates the difference in days between two dates.
public Days()
Fields
The name of the function.
public static readonly string FunctionName
Properties
Conversion rules specific to the DAYS function, treating text dates as errors in direct arguments.
public override ArgumentConversionRules ArgumentConversionRules { get; }
The argument conversion rules as ArgumentConversionRules.
Overrides:
Metadata describing the function's parameters and description.
public override FunctionInfo FunctionInfo { get; }
The function info as FunctionInfo.
Overrides:
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.
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<double> context)
The context.
Returns:Functions result as RadExpression.
Overrides: