From: aidy Date: 2006-09-01T22:15:32+09:00 Subject: Re: Convert String to date Hi Paul > require 'date' > date = Date.strptime(start_date, '%d/%m/%y') > date.year # => 2006 > date.month # => 7 > date.mday # => 27 > (date + 1).mday # => 28 > Thanks for getting back. I have extrapolated your example (see below) require 'date' start_date = Date.strptime(start_date, '%d/%m/%Y') end_day = (start_date + 1).mday end_month = (start_date).mon end_year = (start_date).year end_date = Date.new(end_year, end_month, end_day) p "the end_date is: #{end_date}" However, I am having a couple of difficulties 1) Now for some reason the year '2006' is putting to the console "the end_date is: 0006-07-28" 2) And if I add this line of code end_date = Date.strptime(end_date, '%d/%m/%Y') I receive the error the #strptime is a private method! Using Ruby 184.17 Could you please help? Thanks aidy