Equinox Online Help - Language Reference - A to Z

Home

MonthName

Applies to
SyntaxMonthname(MonthExpression)
Action[Function] Returns the month name for a specified month.
ScopeUsable anywhere.
Notes

The function returns the name of MonthExpression as a string, eg "July". MonthExpression can either be a date, or a number between 1 and 12.

CategoryDate handling
See Also Years, Year, Day, Dayname, Dayofweek, Dayofyear, Dmy, Dmyadd, Leapyear, Month, Months, ServerDateTime, Today, Week, WeekOfYear, WeekStart
Example

The following example puts the first letter of the current month into the variable MonthLetter.

MonthLetter = Left(Monthname(Today), 1)