From: 7stud -- Date: 2007-09-23T21:53:28+09:00 Subject: Re: Questions about Date.strptime 7stud -- wrote: > > rescue ArgumentError > puts "invalid date, e.g. day = 32" > end Actually, that ArgumentError could be caused by both the Integer() and the Date.new() methods, so if you want to distinguish between the two errors, you should convert to an Integer() in a different begin/rescue block. -- Posted via http://www.ruby-forum.com/.