MarkLogic 12 EA 1 Product Documentation
xdmp.daynameFromDate

xdmp.daynameFromDate(
   arg as Date?
) as String?

Summary

Returns a string representing the dayname value in the localized value of $arg.

If $arg is an empty sequence or null, returns null.

Parameters
arg The date whose dayname value will be returned.

Example

xdmp.daynameFromDate(xs.date("1997-07-20"));
=>
Sunday

Example

xdmp.daynameFromDate(xs.date("2012-05-16"));
=>
Wednesday
Powered by MarkLogic Server | Terms of Use | Privacy Policy