<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.weekdayFromDate.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.weekdayFromDate</api:function-name><api:suggest>xdmp.weekdayfromdate</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>weekdayfromdate</api:suggest><api:function-link mode="xquery" fullname="xdmp:weekday-from-date">/apidoc/8.0/xdmp:weekday-from-date.xml</api:function-link><api:function mode="javascript" name="weekdayFromDate" type="builtin" lib="xdmp" category="DurationDateTimeBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.weekdayFromDate"><api:summary>
<p xmlns="http://www.w3.org/1999/xhtml">Returns an xs:integer between 1 and 7, both inclusive, representing the 
weekday value in the localized value of $arg.
</p><p xmlns="http://www.w3.org/1999/xhtml">
If $arg is the empty sequence, returns the empty sequence.
</p>
</api:summary><api:params><api:param name="arg" type="xs:date?"><api:param-description>
The date whose weekday value will be returned.
  </api:param-description><api:param-name>arg</api:param-name><api:param-type>Date?</api:param-type></api:param></api:params><api:return>Number?</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.weekdayFromDate(xs.date("1997-07-16"))
=&gt; 3
</pre>
</api:example><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.weekdayFromDate(xs.date("2012-05-16"))
=&gt; 3
</pre>
</api:example></api:function></api:function-page>