Hi,
I think there is a wrong algorithm in your date function when using the %C
argument for displaying the current century. your algorithm (year divided by
100 and truncated to an integer) gives the 20th century for the year 2004.
but
obviously that's not correct, so there has to be added a "+ 1" to your
algorithm.
hope I could help
best regards
g. müller
--
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz