Create a filename to write to using date #2

found the solution here