How does one due date comparisons where only the date should be considered? As an example, how can you check that a date is earlier than today? The only way I know of to get the current date is the 'now' function, but that includes a time, so comparisons don't work since the time isn't accounted for. For example, this:
if (due date < now)
doesn't work at all because any time except this instant will make this true. Meanwhile, techniques along these lines:
if (due date > now - 1 day)
won't work because anything after this time yesterday will pass. What I really need is something like this:
if (dateOnly(due date) < dateOnly(now))
I tried using format() to accomplish this, but the editor didn't like it. So what's the correct way to do this?