Zaboss,
I haven't run that code, but at a guess I'd say the filename you end up with from this would be an illegal filename, because it's likely to contain / or other illegal characters. You might want to first get the date, replace all non-alpha characters, then use it in the file name.
Rory