<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.parseYymmdd.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.parseYymmdd</api:function-name><api:suggest>xdmp.parseyymmdd</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>parseyymmdd</api:suggest><api:function-link mode="xquery" fullname="xdmp:parse-yymmdd">/apidoc/8.0/xdmp:parse-yymmdd.xml</api:function-link><api:function mode="javascript" name="parseYymmdd" type="builtin" lib="xdmp" category="Extension" subcategory="Extension" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.parseYymmdd"><api:summary>
   Parses a string containing date, time or dateTime using the supplied
   picture argument and returns a dateTime value.    While this function
   is closely related to other XSLT functions, it is available in XSLT
   as well as in all XQuery dialects and in Server-Side JavaScript.
 </api:summary><api:params><api:param name="picture" type="xs:string" optional="false"><api:param-description>
     The desired string representation of the given <code xmlns="http://www.w3.org/1999/xhtml">$value</code>.
     This follows the specification of picture string which is
     compatible to the format specification in icu. See
     <a href="http://icu-project.org/apiref/icu4j/com/ibm/icu/text/SimpleDateFormat.html" target="_blank" xmlns="http://www.w3.org/1999/xhtml">http://icu-project.org/apiref/icu4j/com/ibm/icu/text/SimpleDateFormat.html</a>
     for more details.

     <p xmlns="http://www.w3.org/1999/xhtml">The following is the summary of the formatting symbols:
     <pre xml:space="preserve">

     Symbol     Description
  ----------------------------
     "y"       year(absolute value)
     "M"       month in year
     "d"       day in month
     "D"       day in year
     "E"       day of week
     "w"       week in year
     "W"       week in month
     "H"       hour in day
     "K"       hour in half-day
     "a"       am/pm marker
     "s"       second in minute
     "S"       fractional seconds
     "Z"       timezone as a time offset from UTC
               for example PST
     "ZZZZ"    timezone as an offset using GMT,
               for example GMT+1

             </pre>  </p>
   </api:param-description><api:param-name>picture</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="value" type="xs:string" optional="false"><api:param-description>
     The given string <code xmlns="http://www.w3.org/1999/xhtml">$value</code> that needs to be formatted.
   </api:param-description><api:param-name>value</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="language" type="xs:string?" optional="true"><api:param-description>
     The language used in string representation of the date, time or
     dateTime value.
   </api:param-description><api:param-name>language</api:param-name><api:param-type>String?</api:param-type></api:param><api:param name="calendar" type="xs:string?" optional="true"><api:param-description>
     This argument is reserved for future use. The only calendar supported
     at this point is "Gregorian" or "AD".
   </api:param-description><api:param-name>calendar</api:param-name><api:param-type>String?</api:param-type></api:param><api:param name="country" type="xs:string?" optional="true"><api:param-description>
     $country is used to take into account if there any country specific
     interpretation of the string while converting it into dateTime value.
   </api:param-description><api:param-name>country</api:param-name><api:param-type>String?</api:param-type></api:param></api:params><api:return>Date</api:return><api:usage>
    Dates before October 15, 1582 (the start of the Gregorian calendar) will
    not return the correct dateTime value.
 </api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
   xdmp.parseYymmdd("yyyy-MM-ddThh:mm:ss.Sz",
      "2014-01-06T17:13:50.873594-8.00")
   =&gt;
   2014-01-06T17:13:50.874-08:00
 </pre>
 </api:example></api:function></api:function-page>