Visibility toggle expression

I am trying to show or hide a button based on an expression and I believe I have it wrong.
I have a page parameter for TodayDate = ${new Date()}
I also have a field in a record called AuctionEnd which is a date time.

If the current date time passes the auction end I want the button to disappear so I was trying the below but it is not working.

${TodayDate} <= ${Auctionresult.AuctionEnd})

Hi Josh,

If you want to compare dates in JavaScript you can call getTime() method of the date object:

Hope this helps,