> puts "I don't want to delete this file" > end Hi, thanks for that, did'nt know you can do it this way ;) However, I have 2 formats, one yyyymmdd and the other just ddmmyyyy(w/o any dashes). Unfortunately Parsedate cannot be used for ddmmyyyy. Only yyyymmdd can work. Any ideas? -- Posted via http://www.ruby-forum.com/.