Description
The functx:next-day function takes a date and returns a date representing the following day.
The $date argument must be castable to xs:date , meaning that it must have the type xs:date or xs:dateTime , or be an xs:string or untyped value of the form YYYY-MM-DD.
Arguments and Return TypeName | Type | Description |
$date |
xs:anyAtomicType? |
the date |
return value |
xs:date? |
XSLT Function DeclarationSee XQuery definition. | <xsl:function name="functx:next-day" as="xs:date?"
xmlns:functx="http://www.functx.com">
<xsl:param name="date" as="xs:anyAtomicType?"/>
<xsl:sequence select="
xs:date($date) + xs:dayTimeDuration('P1D')
"/>
</xsl:function>
|
ExamplesXPath Example | Results |
---|
functx:next-day(xs:date('2004-01-23')) |
2004-01-24 |
functx:next-day(
xs:dateTime('2005-12-31T12:00:13')) |
2006-01-01 |
See AlsoHistory |
Recommended Reading:
|