search for: month_year

Displaying 2 results from an estimated 2 matches for "month_year".

2006 Jan 25
0
Another crack at age calculations
...years * 12 months = months + (Date.today.month - dob.month) years = (months / 12).floor months = months - (years *12) # return an aray [year,month] return years, months end nil end def age_year_month(dob) age_my = age(dob) if age_my[0] == 0 month_year = age_my[1].to_s + " months" end if age_my[0] >= 1 month_year = age_my[0].to_s + " years " + age_my[1].to_s + " months" end if age_my[1] == 0 month_year = age_my[0].to_s + " years" end return month_year end de...
2008 May 22
0
Getting the datetime when using Calendar Date Select plugin in an Ajax update operation.
...tetime in an onchange event? My code is as below: <div id="calendar"> <%= calendar_date_select_tag :e_date, nil, :embedded => true, :year_range => 100, :month_year => "label", :onchange => remote_function(:update=>"events", :url=>study_plan_users_calendars_path) %> </div> <div id="events">Here comes the message which...