Hello,
I am trying to get the current year and apply it to a session variable. Here is the code I tried:
Session("RefYear")=(DatePart("yy",Date))
I get the error:
Invalid procedure call or argument: 'DatePart'
How would I grab the current year?
Thanks,
Tim