Class
Date

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

Definition

Constructors

Date()

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

Declaration

cs-api-definition
public Date()

Fields

FunctionName

The name of the function.

Declaration

cs-api-definition
public static readonly string FunctionName

Field Value

string

Properties

FunctionInfo

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

Declaration

cs-api-definition
public override FunctionInfo FunctionInfo { get; }

Property Value

FunctionInfo

The function info as FunctionInfo.

Overrides FunctionBase.FunctionInfo

Name

The function name "DATE" as recognized in formulas.

Declaration

cs-api-definition
public override string Name { get; }

Property Value

string

The name as String.

Overrides FunctionBase.Name

Methods

EvaluateOverride(FunctionEvaluationContext<double>)

Evaluates the DATE function by constructing a date serial number from year, month, and day arguments, returning #NUM! error for invalid or negative dates.

Declaration

cs-api-definition
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<double> context)

Parameters

context

FunctionEvaluationContext<double>

The context.

Returns

RadExpression

Functions result as RadExpression.

Overrides FunctionWithSameTypeArguments<double>.EvaluateOverride(FunctionEvaluationContext<double>)