Rename and move into folders

I have files with a fixed date-based format (July 21 2013 08:46:34 AM - Name.md)
What I'd like is to have the file renamed to Name.md and put into a folder baed on the year and month (2013/07). Creating those if necessary.
Help please.
What I'd like is to have the file renamed to Name.md and put into a folder baed on the year and month (2013/07). Creating those if necessary.
Help please.