\documentclass{book}
\begin{document}

\count0=10
{
\count0=\year\advance\count0-1993
\xdef\version{\number\count0}
\message{[*\version*]}
}
\message{[*\number\count0*]}
\message{[*\version*]}

\end{document}
