LessThanOrEquals method (date)

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

Syntax

date1.LessThanOrEquals(date2)

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

Example

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

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

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