Loading TOC...

MarkLogic 9 Product Documentation
xs.dateTime.le

xs.dateTime.le(
   value as xs.dateTime
) as boolean

Summary

Less-than or equal comparison on xs.dateTime values

Parameters
value A date time value.

Example

const v1 = xs.dateTime(xs.date('2013-08-15'), xs.time('12:30:45-05:00'));
const v2 = xs.dateTime(xs.date('2012-04-01'), xs.time('01:10:25-02:00'));
v1.le(v2);

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