TeX initializes \day, \month, \year and \time at the beginning of a job; they are internal integer registers that can be assigned new values. However, there is no LaTeX interface for modifying their values, so the primitive TeX assignment style has to be used: thus
\year=2012
will do, and similarly for the other registers mentioned above. Leave a space (or end of line) after the value, or append \relax to be sure.
Note that \time is initialized with the number of minutes past midnight when the job started. The initial values of \day, \month and \year are the expected ones.
You can print their values by prefixing the register's name with \the, as described in The \the command.
\year=2012– egreg Jun 16 '14 at 21:54\begin{document}(not a problem for me). Care to write this as an answer? How does this fit the accepted answer of the linked question? – krlmlr Jun 16 '14 at 22:02