How can I specify a relative date and let LaTeX insert the resulting absolute one?
For example like this:
\somedatecommand{next thursday}
Which should result in:
Thursday, 20.10.2011
Or:
20.10.2011
Great would be also babel support (e.g. for non-english documents).
Best Answer
You could use the
datetime
package to format the dates and quoting form the package documentation:The harder part is determining the date to print. This can be achieved using
\AdvanceDate[n]
macro from theadvdate
package to advance the date by a specified number of days. Then it is just a matter of determining how many days we need to advance to get to "next day-of-week".To start from a day other than the current day one can use
\SetDate[dd/mm/yyyy]
.