我在乳胶中创建了以下代码,当我在formatdate函数中使用\ Year时,它抱怨并且我不明白为什么
\documentclass{article}
\usepackage{ifthen}
\usepackage{datetime,calculator}
\ADD{\the\year}{1}{\ans}
\newcommand{\Year}{\ifthenelse{\month = 12}
{\ifthenelse{\the\day<20}{\the\year}{\ans}}
{\the\year}
}
\newcommand{\tDate}{\formatdate{03}{02}{\Year}}
\begin{document}
\Year
The date is \tDate
\end{document}
错误 缺少数字,视为零。