A Typed String example to calculate dates ahead of today and before today. Inspired by Typinator’s dayDelta1 and @peternlewis’ Calculation macro1.
today+20d → Date 20 days ahead
today+3w → Date 3 weeks ahead
today+9m → Date 9 months ahead
today-3w → Date 3 weeks ago
You can change the trigger word and customize the date format in the macro.
Date format syntax
Update (2016-10-18 19:42 Z):
Date token now composed of variables (→ date format easier to customize, less switches).
Thanks to @JMichaelTX
Date Calculator.kmmacros (5.0 KB)
<img src="/uploads/default/original/2X/4/42980230a0a102c6b87c27abafc8f7a5b27f1054.png" width="613" height="2833">
a bit over my pay grade, but trying to learn,
I use past and future dates all the time, I have it in QKs but would like to get it in KM
how would I trigger that macro?
I tried typing what it said to type, to no avail,
a little ‘push’ would be appreciated, =)
understood, not sure how to do that, will poke around,
I was able to do a search and replace and get it to work on one date 'type’
I’ll just have to make a few more search and replace’s to cover all the variables. -
sort of country ‘programming’ but it works. =)