Class DateValue
Implements the DATEVALUE function that parses a text string into a date serial number, allowing conversion of date strings to numeric values.
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Expressions.Functions
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public class DateValue : StringsInFunction
Constructors
DateValue()
Initializes a new instance of the DateValue function that converts date text strings to serial numbers.
Declaration
public DateValue()
Fields
FunctionName
The name of the function.
Declaration
public static readonly string FunctionName
Field Value
|
System.String
|
Properties
FunctionInfo
Metadata describing the function's parameters and description.
Declaration
public override FunctionInfo FunctionInfo { get; }
Property Value
|
FunctionInfo
The function info as FunctionInfo. |
Overrides
Name
The function name "DATEVALUE" as recognized in formulas.
Declaration
public override string Name { get; }
Property Value
|
System.String
The name as String. |
Overrides
Methods
EvaluateOverride(FunctionEvaluationContext<String>)
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.
Declaration
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<string> context)
Parameters
|
FunctionEvaluationContext<System.String>
context
The context. |
Returns
|
RadExpression
Functions result as RadExpression. |