MonthShortAsString()
Returns the string label for the given month in short format.
MonthShortAsString( monthNumber=number, locale=locale );
Returns: String
| Argument | Description |
|---|---|
|
monthNumber
number,
required
|
edit
A number corresponding a given month; 1 (January)- 12 (December) |
|
locale
locale,
optional
|
edit
Locale to use instead of the locale of the page when processing the function Introduced: 5.0.0.0 |
Examples
edit dump(monthShortAsString(1)); // Jan
dump(monthShortAsString(12)); // Dec
See also
- Date and time
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)