Loading TOC...

Did you mean fn:dateTime?

fn.dateTime

fn.dateTime(
   arg1 as Date,
   arg2 as (Number|String)
) as Date

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.