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

Date

Class

Implements the DATE function that constructs a date serial number from year, month, and day components, returning a formatted date value.

Definition

Constructors

Initializes a new instance of the Date function that constructs date serial numbers from year, month, and day values.

C#
public Date()

Fields

The name of the function.

C#
public static readonly string FunctionName

Properties

Metadata describing the function's parameters, description, and return format.

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

The function info as FunctionInfo.

Overrides: FunctionBase.FunctionInfo

The function name "DATE" as recognized in formulas.

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

The name as String.

Overrides: FunctionBase.Name

Methods

Evaluates the DATE function by constructing a date serial number from year, month, and day arguments, returning #NUM! error for invalid or negative 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>)