Calculating Dates From an Input Date and Offsets

Thanks for the confirmation.

I generally prefer AppleScript over Shell Script, but in this case I like the Shell Script because:

  1. Does not embed the KM Variables in the script
  2. Much more concise at 2 lines
  3. Is easier to modify to change date formats

I'm not sure I follow you here. The Shell Script has a default date format of the ISO 8601 standard (international), so should be acceptable to most. If the macro builder wants to use a different format, that's easy enough to change in the script. But there are lots of utilities, scripts, etc that will convert dates to ISO.

My thought is to add two lines to the SS to set the input and output date formats.

While it might be neat, it is out of scope of this task, date calculation. And, as you have seen with your AppleScript, it takes a lot of coding. I want to keep this simple.

There are many solutions at there for recognizing and converting dates. We could just provide a reference to those, including yours.

Thanks for your feedback, and your enthusiasm about this.