I found the code that I believe was causing the problem. Please note, this is the 2012 version and requires SQL Server 2012. If someone can verify that this works I'll look into updating the 2008 version.

=================================================Creating tomorrow's legacy systems today. One crisis at a time.

I'll try to find the time to go back to SQL Server 2008 but I'm not making any promises. As a work around, that's just populating a date lookup table. You can easily write a script to populate 10 years in the future and going back a bit. That's all I'm doing. Let me know if that works for now.

=================================================Creating tomorrow's legacy systems today. One crisis at a time.

I'll try to find the time to go back to SQL Server 2008 but I'm not making any promises. As a work around, that's just populating a date lookup table. You can easily write a script to populate 10 years in the future and going back a bit. That's all I'm doing. Let me know if that works for now.

Sorry, but can you give me some more details plz...how can I modify it without the sources?