Batch rename of folders

I need help;

I have various photo folders that are date named in this format;

2009 08 01

And I would like to rename them in this format;

2009-08-01

but I fear this is beyond my ability. Can anyone tell me how to do a batch rename like this?

many thanks.

Old name: * * *
New name: --*

damn....the simplicity is mind boggling!

thanks for that, worked like a treat and I can't believe that I didn't work that out myself...Hey ho....