app/controllers/application_controller.rb
# make a date from a month start time and a day
make a date from a month start time and a day
make a date from a month start time and a day
def make_date(date_params)
	  raise ArgumentException, "Date parameters nil or missing month or day value" if date_params.nil? or date_params["month"].nil? or date_params["day"].nil?
	  my = Time.at(date_params["month"].to_i).gmtime
	  day = date_params["day"].to_i
	  Time.gm(my.year, my.month, day)
	end
def make_date ( date_params ) raise ArgumentException , "Date parameters nil or missing month or day value" if date_params . nil? or date_params [ "month" ] . nil? or date_params [ "day" ] . nil? my = Time . at ( date_params [ "month" ] . to_i ) . gmtime day = date_params [ "day" ] . to_i Time . gm ( my . year , my . month , day ) end
make a date from a month start time and a day
make a date from a month start time and a day
date_params
<not_specific>