## xs:dateTime Server Expression

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

### Cast With

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

### Parameter Of

Server Return Type | Server Function | Java Doc | Server Doc
--- | --- | --- | ---
cts:query | cts:lsqt-query(xs:string temporal-collection, xs:dateTime timestamp?, xs:string options*, xs:double weight?) | java | server
cts:period | cts:period(xs:dateTime start, xs:dateTime end) | java | server
xs:dateTime? | fn:adjust-dateTime-to-timezone(xs:dateTime arg?, xs:dayTimeDuration timezone?) | java | server
xs:integer? | fn:day-from-dateTime(xs:dateTime arg?) | java | server
xs:string | fn:format-dateTime(xs:dateTime value?, xs:string picture, xs:string language?, xs:string calendar?, xs:string country?) | java | server
xs:integer? | fn:hours-from-dateTime(xs:dateTime arg?) | java | server
xs:integer? | fn:minutes-from-dateTime(xs:dateTime arg?) | java | server
xs:integer? | fn:month-from-dateTime(xs:dateTime arg?) | java | server
xs:decimal? | fn:seconds-from-dateTime(xs:dateTime arg?) | java | server
xs:dayTimeDuration? | fn:timezone-from-dateTime(xs:dateTime arg?) | java | server
xs:integer? | fn:year-from-dateTime(xs:dateTime arg?) | java | server
xs:string | sem:timezone-string(xs:dateTime value) | java | server
xs:string | xdmp:strftime(xs:string format, xs:dateTime value) | java | server
xs:unsignedLong | xdmp:wallclock-to-timestamp(xs:dateTime timestamp) | java | server

### Return Value Of

Server Return Type | Server Function | Java Doc | Server Doc
--- | --- | --- | ---
xs:dateTime? | fn:adjust-dateTime-to-timezone(xs:dateTime arg?, xs:dayTimeDuration timezone?) | java | server
xs:dateTime | fn:current-dateTime() | java | server
xs:dateTime | fn:dateTime(xs:date arg1?, xs:time arg2?) | java | server
xs:dateTime | xdmp:parse-dateTime(xs:string picture, xs:string value, xs:string language?, xs:string calendar?, xs:string country?) | java | server
xs:dateTime | xdmp:parse-yymmdd(xs:string picture, xs:string value, xs:string language?, xs:string calendar?, xs:string country?) | java | server
xs:dateTime | xdmp:timestamp-to-wallclock(xs:unsignedLong timestamp) | java | server