Firstly as tresesco said provide a sample qvw for us to see the issue before we suggest a solution.
FYI.. If you are using QV 11 you have the Calender object that you can use. Provide the date field which you want to use for the calender in the properties. The output will look like below and you will not end up having strange years.