cleaning dates while analysing name for download