Loading TOC...

MarkLogic Server 11.0 Product Documentation
fn:dateTime

fn:dateTime(
   $arg1 as xs:date,
   $arg2 as xs:time
) as xs:dateTime

Summary

Returns an xs:dateTime value created by combining an xs:date and an xs:time.

The timezone of the result is computed as follows:

Parameters
arg1 The date to be combined with the time argument.
arg2 The time to be combined with the date argument.

Example

fn:dateTime(xs:date('2008-02-01'), xs:time('10:25:00'))
=> 2008-02-01T10:25:00

Example

fn:dateTime(xs:date('2008-02-01'), xs:time('10:25:00+02:00'))
=> 2008-02-01T10:25:00+02:00

Example

fn:dateTime(xs:date('2010-12-01+04:00'), xs:time('11:45:20'))
=> 2010-12-01T11:45:20+04:00

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.