From: Terry Improv_coder Date: 2011-07-27T07:53:58+09:00 Subject: How do I pass a variable to the Chroinc library function? require 'chronic' puts "Enter the day of the week, and the date will be displayed " inputday = gets.downcase.chomp! # User enters # monday nextdate = Chronic.parse('next inputday') puts "The next", inputday, "is " puts nextdate exit ******************************* I have tried every $, @ , @@ and single quotes and double quote combinations I can think of. I can use the Time.now with offsets to get the result I need But I am interested in having the 'next inputday' arguments evaluated before Chronic uses them. I tried the eval command, but that did not work. Any ideas, thanks in advance. Kindly taz-uker -- Posted via http://www.ruby-forum.com/.