Keyboard Maestro 8.0.1 “Date Calculator Plus Days Only and Date Suffix” Macro

Keyboard Maestro 8.0.1 “Date Calculator Plus Days Only and Date Suffix” Macro

This macro worked fine pre version 8.xx
Something has changed with the new version and the macro coding is over my head.
Would appreciate if anyone could see the issue.
Many thanx

Date Calculator Plus Days Only and Date Suffix.kmmacros (28 KB)

Please provide details about what is not working now.
An example with screenshot would be great!

Using the macro posted above, if I type
dd3(space)
it types
%ICUDateTimePlus%3ÝEEEE MMMM dth%

Calculated Day - Date - W-Suffix.kmmacros (9.0 KB)

I'm sure it's 'hillbilly' programming but it works for me.
I used the brains of your original macro and slimmed it down for my uses.
Good Stuff, thanx

IF you do have a second (yeah right) to take a look at the original and see where it went awry, I'd be grateful for the opportunity to learn.
Again, thank you

EDIT: sidebar, is it possible to use an 'enter' key in a regex expression?
i.e. ..(\d+)\r this doesn't work.

The “unit” part is slightly more strict in 8 to accomodate the new day of the week options.

So the unit (dacUnit) needs to be “Day” or “Days”, not “dd” as it appears in that macro.

1 Like

I am having the same problem…and I am not smart enough to understand what to do with this advice:

The “unit” part is slightly more strict in 8 to accomodate the new day of the week options.
So the unit (dacUnit) needs to be “Day” or “Days”, not “dd” as it appears in that macro.

Could you give us more details on what needs to change?

Thanks, Gregg

The "unit" part of the ICUDateTimePlus token:

%ICUDateTimePlus%3%Days%format% 

Must be "Day" or "Days", not "D" or whatever.

Prior to version 8, the unit was more lax, it could be just "d" or anything starting with a d.

However in version 8, the unit can be things like "Thursday"

%ICUDateTimePlus%3%Thursday%format% 

Which would give you the date three Thursdays from now.

2 Likes