Publish file names

Is there any way so that when i publish a document to a swf the file name contains the date and time? Or instead of just overwritting the old version adds a number to the end of the new version?