MarkLogic Server 11.0 Product Documentation
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
Powered by MarkLogic Server | Terms of Use | Privacy Policy