Table of Contents

Class MonthName

Namespace
Albatross.Expression.Prefix
Assembly
Albatross.Expression.dll

Prefix expression that returns the full month name from a DateTime value. Uses the current culture's formatting to return the localized month name.

public class MonthName : PrefixExpression, IPrefixExpression, IExpression, IToken
Inheritance
MonthName
Implements
Inherited Members
Extension Methods

Constructors

MonthName()

Initializes a new instance of the MonthName class with name "MonthName" and exactly one parameter.

public MonthName()

Methods

Run(List<object>)

Returns the full month name from the provided DateTime operand using current culture formatting. For example, returns "January", "February", etc. in English or localized equivalents.

protected override object Run(List<object> operands)

Parameters

operands List<object>

List containing exactly one operand that can be converted to DateTime.

Returns

object

A string containing the full month name in the current culture.

Exceptions

FormatException

Thrown when the operand cannot be converted to DateTime.