I noticed when trying to compare two JS Date objects in an Anvil form with a >/</>=/<= operands, that I get an error about that not being valid.
This doesn’t happen if I run the comparison either in the Browser Console or directly in script tags, so I know it’s not a JS flaw.
Not a huge deal, but still seems like a bug.
App showing the JS success and Form failure:
https://anvil.works/build#clone:7F45AHFBVJA3AF3L=XIQLZ2NYBORPYNBS745T3ZN5
P.S. I’m aware of Python’s Datetime library’s date object and I used this as a workaround, but that meant I had to use both Python and JS Date objects, which makes my code less consistent. (The Javascript component I’m integrating unfortunately requires the JS Date object for time calculations and wouldn’t accept the python date object )