I'd like to be able to set a reference date and invoke it with an increment. I guess I will have to write a macro but I'm just not sure where to start.
Code: Select all
\documentclass{article}
\usepackage[english]{babel}
\usepackage{datetime}
%\usepackage{datenumber,fp}
\newdate{mydate}{01}{01}{1800} % reference date
\newcommand{\addyears}[1]{
%\getdateyear{mydate} %and then what?
}
\begin{document}
Year \addyears{0} was the first day of the 19th century, duh! Five years later was \addyears{5}. % 01/01/1805
\end{document}