2008/5/7 Sunny Bogawat <sunny_bogawat / neovasolutions.com>: > i want a new file name from existing file name but with attaching time > stamp but gives error invalid argument type please tell simple way for > doing this If you do not tell us what you did and what error you saw we cannot help you. Did you look at http://www.ruby-doc.org/core/classes/Time.html#M000297 ? Kind regards robert -- use.inject do |as, often| as.you_can - without end