Hi,

I'm assuming you already checked out the Date class from the standard 
library I mentioned in the last thread.

Well, you don't want to divide dates but rather the *difference* between 
those dates and then add it do the earlier date (or subtract it from the 
larger). You can directly translate this into Ruby code:



#------------------------------
require 'date'

date_1, date_2 =
  ['2010-5-3', '2011-12-16'].map {|str| Date.parse str}

middle = date_1 + (date_2 - date_1) / 2
puts middle
#------------------------------

-- 
Posted via http://www.ruby-forum.com/.