the
year function has a
date as an input. I am guessing (from the one line of code you gave) that your trying to use it with a String returned from a recordset...
Either do what MrWizzard says which will get the server time, not the time from that string (which is probably what you want) or;
you will need to convert the string into a date using a string to date formatting function. For info on how to do it read here (in the Date/Time Functions (VBScript) section);
http://www.w3schools.com/asp/asp_examples.asp