Took me about 12 lines to accomplish this, without using find, and I'd post the script but this sounds too much like a school project.
Pull the filename and date from the output of ls -l
Loop over the output:
Reformat the date, to your desired directory name, using the date command and format specifier
Test to see if the directory exists and create the directory if it does not
move the file to the directory