Capture of month

Guys I need your help...

I receive the month and the day in a file and I keep it in a variable. I need to take this day that I�ve kept compare with the current day and pick the file to the next day...
Let�s say I receive a file 27-JUL-2007 and I need to check in the system the current day and pick the next day. Let�s say that the current day is 27-JUL-2007 so I need to pick the files from 28-JUL-2007. The problem is how to do it in a very quick and clean way... Another problem what will I do when I receive a MONTH END file like 31-JAN-2008 or 29-FEV-2008... How can I capture the date in the system? There�s only the cal statment?

Thank you - Regards

if you have GNU date

# date +%Y%m%d -d "1 day"

Thkx Mr... I�ll try