I'd like to have an automatic date in a table. Automatic date means I'd like to specify a start date which is shown in the first row of the table and every additional row shows appropriate next day.
I've already implemented a newcommand for the appropriate row. What I need now is a way to increase a specified date by a counter value.
Here are my commands:
\newcommand{\pweek}[3]{
\setcounter{weekCounter}{1}
\section*{Tagesberichte Woche #1}
\begin{table}[h]
\begin{tabular}{|p{1cm}|p{14cm}|}
#2
\end{tabular}
\end{table}
\newpage
\section*{Wochenbericht #1}
#3
\newpage
}
\newcommand{\pday}[1]{
\hline
\arabic{weekCounter}\stepcounter{weekCounter} & #1 \\ \hline
}
I'd like to replace \arabic{weekCounter}
with the corresponding date which has to be specified somehow in the parameter list of the command.
Do you know how to achieve this?