0

For a capture template I want to insert inactive dates for the upcoming week (without a prompt). In this format (no time component):

[2020-02-10 Mo]

I've figured out that I could do something like this
[%(org-read-date nil nil "Tue")] which yields [2020-02-11]. So it misses the weekday.

I also know about this method
(org-insert-time-stamp (org-read-date nil t "+1d")) but that timestamp is not inactive.

0

I was close with my last try.
Reading the documentation does help :)

%(org-insert-time-stamp (org-read-date nil t "+1d") nil t)
does the trick. And you can do any date arithmetic in the string part that you would do at the interactive prompt.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.