Class ShortMonthName
- Namespace
- Albatross.Expression.Prefix
- Assembly
- Albatross.Expression.dll
Prefix expression that returns the abbreviated month name from a DateTime value. Uses the current culture's formatting to return the localized short month name.
public class ShortMonthName : PrefixExpression, IPrefixExpression, IExpression, IToken
- Inheritance
-
ShortMonthName
- Implements
- Inherited Members
- Extension Methods
Constructors
ShortMonthName()
Initializes a new instance of the ShortMonthName class with name "ShortMonthName" and exactly one parameter.
public ShortMonthName()
Methods
Run(List<object>)
Returns the abbreviated month name from the provided DateTime operand using current culture formatting. For example, returns "Jan", "Feb", etc. in English or localized equivalents.
protected override object Run(List<object> operands)
Parameters
Returns
- object
A string containing the abbreviated month name in the current culture.
Exceptions
- FormatException
Thrown when the operand cannot be converted to DateTime.