How to create date obj?

try it like this:
  date = DateTime.civil(y=from_year, m=from_month, d=from_month,
min=from_time.min, s=from_time.sec, of=0)

here is the according ruby-api:
  http://www.ruby-doc.org/core/classes/DateTime.html