I am making a class syllabus using the "termcal" package and would like to store the starting date for the first class so I can use it for different elements of the syllabus. I am currently trying to store the date using the \DTMsavedate
function from the "datetime2" package.
The date will show fine if you use, for example, \DTMusedate{startDate}
within a paragraph. But if I try to pass it to the date option for \begin{calender}
, I get the error message "Paragraph ended before \setdate@ was complete". Is there a way to make this work? The MWE:
\documentclass[12pt]{article}
\usepackage{termcal}
\usepackage[american,useregional=numeric]{datetime2}
\DTMsavedate{startDate}{2017-8-29}
\begin{document}
\begin{calendar}{\DTMusedate{startDate}}{16}
\setlength{\calboxdepth}{.3in}
\setlength{\calwidth}{0.8\textwidth}
% Description of the Week.
\calday[Tuesday]{\classday}
\skipday
\calday[Thursday]{\classday}
\skipday
\skipday
\skipday
\skipday
\end{calendar}
\end{document}
I would really appreciate any help with this, thanks!