<?xml version="1.0" encoding="iso-8859-1"?> <?xml-stylesheet href="../../make-menu.xsl" type="text/xsl"?><html> <head> <this-is section="extensions" page="functions" subpage="format-dateTime"/> <!-- Generated at 2011-12-09T20:47:22.916Z--><title>Saxonica: XSLT and XQuery Processing: saxon:format-dateTime()</title> <meta name="coverage" content="Worldwide"/> <meta name="copyright" content="Copyright Saxonica Ltd"/> <meta name="title" content="Saxonica: XSLT and XQuery Processing: saxon:format-dateTime()"/> <meta name="robots" content="noindex,nofollow"/> <link rel="stylesheet" href="../../saxondocs.css" type="text/css"/> </head> <body class="main"> <h1>saxon:format-dateTime()</h1> <p><b>saxon:format-dateTime($value as xs:dateTime?, $picture as xs:string, $language as xs:string?, $calendar as xs:string?, $country as xs:string?) as xs:string?</b></p> <p><b>saxon:format-dateTime($value as xs:dateTime?, $picture as xs:string) as xs:string?</b></p> <p><b>saxon:format-date( $value as xs:date?, $picture as xs:string, $language as xs:string?, $calendar as xs:string?, $country as xs:string?) as xs:string?</b></p> <p><b>saxon:format-date($value as xs:date?, $picture as xs:string) as xs:string?</b></p> <p><b>saxon:format-time( $value as xs:time?, $picture as xs:string, $language as xs:string?, $calendar as xs:string?, $country as xs:string?) as xs:string?</b></p> <p><b>saxon:format-time($value as xs:time?, $picture as xs:string) as xs:string?</b></p> <p>These functions are identical to the XSLT functions of the same name, but are made available in the Saxon namespace for the benefit of XQuery users. For full details, see the current draft of the <a href="http://www.w3.org/TR/xslt20/" class="bodylink">XSLT 2.0 specification</a>.</p> <p>For example, the call <code>saxon:format-date(current-date(), '[D1o] [MNn], [Y0001]')</code> might produce the output <code>3rd September, 2004</code>.</p> <p><i>These functions (in the Saxon namespace) are available in Saxon-EE only. They are obsolescent since they are now available in the standard <code>fn:</code> namespace, whether you are using XSLT, XPath, or XQuery.</i></p> <table width="100%"> <tr> <td> <p align="right"><a class="nav" href="format-number.xml">Next</a></p> </td> </tr> </table> </body> </html>