If...then...condition to run only during date range

Hey @edjusted,

Sure – but date-math is hard to wrap your head around to start with.

“0725” is completely meaningless unless you translate it into a format suitable for calculations.

See this post (and the thread in general):

See also this page on the Wiki:

https://wiki.keyboardmaestro.com/token/ICUDateTime

If you calculate Epoch Seconds for 7/1 and 7/30 then comparison is simple:

%Calculate%TIME(2016, 7, 1)%
--> 1467331200

%Calculate%TIME(2016, 7, 30)%
--> 1469836800

%Calculate%NOW()%
--> 1469483562

Here's a basic example:

Now() is Between Two Dates.kmmacros (2.1 KB)

-Chris