<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass[italian]{article}
\newcount\myct
\newcount\datecount
\newcommand{\tomorrow}{%
	\DTMsavenow{mydate}
	\DTMsaveddateoffsettojulianday{mydate}{365}{\myct}
	\DTMsavejulianday{mydate}{\number\myct}
	\DTMusedate{mydate}
}

\newcommand{\yesterday}{%
	\DTMsavenow{mydate}
	\DTMsaveddateoffsettojulianday{mydate}{-1}{\myct}
	\DTMsavejulianday{mydate}{\number\myct}
	\DTMusedate{mydate}
}
\newcommand{\myday}[1]{%
	\DTMsavenow{mydate}
	\DTMsaveddateoffsettojulianday{mydate}{#1}{\myct}
	\DTMsavejulianday{mydate}{\number\myct}
	\DTMusedate{mydate}
}
\usepackage[calc,useregional]{datetime2}
\begin{document}

\today~ is the day before tomorrow.\par

\tomorrow~ is the day after today.

\yesterday

\myday{10}
%\DTMuse{\tomorrow}
%\pgfcalendardatetojulian{\year-\month-\day+1}{\pgfdatecount}
%\DTMsavejulianday{mydate}{\the\pgfdatecount}
%\DTMusedate{mydate}


\end{document}</pre></body></html>