monthShortAsString

Returns the first three letters of the given month

monthShortAsString(monthnumber) → returns string

This function requires Lucee.  Not supported on Adobe ColdFusion, etc.

Argument Reference

monthnumber numeric
Required

Examples
Sample code invoking the monthShortAsString function

Returns the string for the given month in short format. It supported in Lucee

getVal = monthShortAsString(3); 
 writeOutput(getVal);

Expected Result: Mar

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub