Compare repeater date value to today's date

I have set a global variable (named 'date') to today's date with [[GenDate]], it set the variable to:

Mon Sep 03 2018 14:47:05 GMT+0100 (British Summer Time)

I have a repeater, in each cell, i have a value such as:

03/08/2018.

I want to do a conditional statement.

If [[Item.date.toDateString()]] is less than [[date]] disable This

It doesn't work.

Does anyone have any ideas on how I can compare two different dates and what format they need to be in?

for other people’s reference, you have to use getTime().

[[Item.date.getTime()]]

(teh date column has a value of 09/03/2018, for example).

compare that to:

[[Now.addDays(-1).getTime()]]

2 Likes