I didn't read all the code as it is hard to read but you input the year as a 2 digit value. You then subtract 2000 from it. Hmmmmm!