xf:get-day-from-date

Extracts the day from $date-var.

If the value of $date-var is the empty sequence, the empty sequence is returned. The empty sequence is a sequence containing zero items (), which is similar to null in SQL.

Signatures

xf:get-day-from-date(xs:date? $date-var) —> xs:integer?

Arguments

Data Type
Argument
Description

xs:date?

$date-var

Contains a representation of the date.

Returns

Returns the day as an integer from $date-var.

Examples

Simple

When you invoke the following query:

<day>{xf:get-day-from-date("2002-08-30")}</day> 

The preceding query generates the following result:

<day>30</day> 

Related Topics

W3C get-day-from-date function description.

W3C date data type description.