GreaterThan method (date)

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

Syntax

date1.GreaterThan(date2)

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

Example

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

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

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