## xs:date Server Expression

A server expression that returns a value of (or implicitly castable to) the xs:date server type. For all server types, see the Server Expression Type Hierarchy.

### Cast With

Server Return Type | Server Function | Java Doc
--- | --- | ---
xs:date? | xs:date(item arg1?) | java

### Parameter Of

Server Return Type | Server Function | Java Doc | Server Doc
--- | --- | --- | ---
xs:date? | fn:adjust-date-to-timezone(xs:date arg?, xs:dayTimeDuration timezone?) | java | server
xs:dateTime | fn:dateTime(xs:date arg1?, xs:time arg2?) | java | server
xs:integer? | fn:day-from-date(xs:date arg?) | java | server
xs:string | fn:format-date(xs:date value?, xs:string picture, xs:string language?, xs:string calendar?, xs:string country?) | java | server
xs:integer? | fn:month-from-date(xs:date arg?) | java | server
xs:dayTimeDuration? | fn:timezone-from-date(xs:date arg?) | java | server
xs:integer? | fn:year-from-date(xs:date arg?) | java | server
xs:string? | xdmp:dayname-from-date(xs:date arg?) | java | server
xs:string? | xdmp:month-name-from-date(xs:date arg?) | java | server
xs:integer? | xdmp:quarter-from-date(xs:date arg?) | java | server
xs:integer? | xdmp:weekday-from-date(xs:date arg?) | java | server
xs:integer? | xdmp:week-from-date(xs:date arg?) | java | server
xs:integer? | xdmp:yearday-from-date(xs:date arg?) | java | server

### Return Value Of

Server Return Type | Server Function | Java Doc | Server Doc
--- | --- | --- | ---
xs:date? | fn:adjust-date-to-timezone(xs:date arg?, xs:dayTimeDuration timezone?) | java | server
xs:date | fn:current-date() | java | server