LessThan method (date)

Returns a value indicating whether this date is less than a specified date.

Syntax

date1.LessThanOrEquals(date2)

Returns true if date1 is less than date2; otherwise, false.

Example

{% Var value1 = #2017-05-29# %}
{% Var value2 = #2013-02-13# %}

Answers: {{ value1.LessThan(value2) }},
         {{ value2.LessThan(value1) }},
         {{ value1.LessThan(#2017-05-29#) }}

The above example would output: Answers: True, False, False