MarkLogic 12 EA 1 Product Documentation
sql.monthname

sql.monthname(
   arg as xs.genericDateTimeArg?
) as String?

Summary

Returns month name, calculated from the localized value of $arg.

If $arg is the empty sequence, returns the empty sequence.

Parameters
arg The date whose month-name will be returned.

Example

sql.monthName(xs.date("1999-05-31"));
=>
May

Example

sql.monthName(xs.date("2000-01-01"));
=>
January
Powered by MarkLogic Server | Terms of Use | Privacy Policy