<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.strftime.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.strftime</api:function-name><api:suggest>xdmp.strftime</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>strftime</api:suggest><api:function-link mode="xquery" fullname="xdmp:strftime">/apidoc/8.0/xdmp:strftime.xml</api:function-link><api:function mode="javascript" name="strftime" type="builtin" lib="xdmp" category="Extension" subcategory="Extension" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.strftime"><api:summary>
  Formats a dateTime value using POSIX strftime.  This function uses
  the POSIX strftime system call in the way it is implemented on each
  platform.  For other XQuery functions that have more functionality
  (for example, for things like timezones), use one or more if the
  various XQuery or XSLT standard functions such as
  <a href="./fn:format-dateTime" xmlns="http://www.w3.org/1999/xhtml"><code>fn:format-dateTime</code></a>.
</api:summary><api:params><api:param name="format" type="xs:string"><api:param-description>
    The strftime format string.
  </api:param-description><api:param-name>format</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="value" type="xs:dateTime"><api:param-description>
    The dateTime value.
  </api:param-description><api:param-name>value</api:param-name><api:param-type>Date</api:param-type></api:param></api:params><api:return>String</api:return><api:usage>
 <p xmlns="http://www.w3.org/1999/xhtml">The supported format strings differ for different platforms.  For the
 supported format strings for Windows, see the following link:</p>
 <p xmlns="http://www.w3.org/1999/xhtml"><a href="http://msdn2.microsoft.com/en-us/library/fe06s4ak(VS.80).aspx" target="_blank">http://msdn2.microsoft.com/en-us/library/fe06s4ak(VS.80).aspx</a></p>
 <p xmlns="http://www.w3.org/1999/xhtml">For the supported format strings for Solaris, see the following link:</p>
 <p xmlns="http://www.w3.org/1999/xhtml"><a href="http://docs.sun.com/app/docs/doc/817-5438/6mkt5pcec?a=view" target="_blank">http://docs.sun.com/app/docs/doc/817-5438/6mkt5pcec?a=view</a></p>
 <p xmlns="http://www.w3.org/1999/xhtml">For the supported format strings for Linux, see the following link:</p>
 <p xmlns="http://www.w3.org/1999/xhtml"><a href="http://linux.about.com/library/cmd/blcmdl3_strftime.htm" target="_blank">http://linux.about.com/library/cmd/blcmdl3_strftime.htm</a></p>
</api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.strftime("%a, %d %b %Y %H:%M:%S", fn.currentDateTime());
=&gt; Thu, 06 Nov 2014 14:08:37
</pre></api:example></api:function></api:function-page>