Thank you! I did not know about that function. It seems to satisfy my needs perfectly.
I can withdraw my request, though it still seems like a good idea. On 2025, Morgan Smith wrote: > [email protected] writes: > > > It would be useful if (org-date YEAR MONTH DAY) would accept a DAY of -1 to > > mean the last day of the month. > > I assume you'd also do -2 to be the second to last day also and so on. > > > > -- > > Jay Dresser > > That does sound useful. > > org-date is but a thin wrapper around diary-date. Thus you should plead > your case to the core Emacs developers instead of the org-mode ones. > > Canceled. > > That being said I did find a fun workaround you might like. We can use > `diary-offset' to subtract a number of days from a date. So in this > example I subtract 5 days from February 1st to get the 4rth last day of > January. > > #+begin_src org > ,* test event > <%%(diary-offset '(org-date 2026 02 01) -5)> > #+end_src > -- Jay Dresser
