New to Telerik Document ProcessingStart a free 30-day trial

Implements the DATEVALUE function that parses a text string into a date serial number, allowing conversion of date strings to numeric values.

Definition

Constructors

Initializes a new instance of the DateValue function that converts date text strings to serial numbers.

C#
public DateValue()

Fields

The name of the function.

C#
public static readonly string FunctionName

Methods

Evaluates the DATEVALUE function by parsing the text argument as a date and returning its serial number, or #VALUE! error if the text is not a valid date.

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

The context.

Returns:

RadExpression

Functions result as RadExpression.

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

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

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

The name as String.

Overrides: FunctionBase.Name