<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/fn.currentDate.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>fn.currentDate</api:function-name><api:suggest>fn.currentdate</api:suggest><api:suggest>fn</api:suggest><api:suggest>currentdate</api:suggest><api:function-link mode="xquery" fullname="fn:current-date">/apidoc/8.0/fn:current-date.xml</api:function-link><api:function mode="javascript" name="currentDate" type="builtin" lib="fn" category="ContextBuiltins" bucket="W3C-Standard Functions" hidden="false" prefix="fn" namespace="http://www.w3.org/2005/xpath-functions" fullname="fn.currentDate"><api:summary>
  Returns <code xmlns="http://www.w3.org/1999/xhtml">xs:date(fn:current-dateTime())</code>. This is an
  <code xmlns="http://www.w3.org/1999/xhtml">xs:date</code> (with timezone) that is current at some time
  during the evaluation of a query or transformation in which
  <code xmlns="http://www.w3.org/1999/xhtml">fn:current-date()</code> is executed. This function is *stable*.
  The precise instant during the query or transformation represented
  by the value of <code xmlns="http://www.w3.org/1999/xhtml">fn:current-date()</code> is
  *implementation dependent*.
</api:summary><api:params/><api:return>Date</api:return><api:usage>
  <code xmlns="http://www.w3.org/1999/xhtml">fn:current-date()</code> returns an <code xmlns="http://www.w3.org/1999/xhtml">xs:date</code>
  corresponding to the current date and time.  For example, an
  invocation of <code xmlns="http://www.w3.org/1999/xhtml">fn:current-date()</code> might return
  <code xmlns="http://www.w3.org/1999/xhtml">2004-05-12+01:00</code>.
</api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
fn.currentDate()

=&gt; 2014-10-29T07:00:00
</pre></api:example></api:function></api:function-page>