Equals method (date)

Returns a value indicating whether this date and a specified date represent the same value.

Syntax

date1.Equals(date2)

Returns true if date1 and date2 are equal; otherwise, false.

Examples

{% Var date1 = #2011-06-17 14:35:20# %}
{% Var date2 = #2011-06-17 14:35:20# %}
{% Var date3 = #2000-03-23 04:01:39# %}

Answers: {{ date1.Equals(date2) }},
         {{ date1.Equals(date3) }},
         {{ date2.Equals(date3) }}.

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