3 4 5
# File 'lib/ruby/to_date.rb', line 3 def to_date Date.civil(year, month, day) end
Returns:
4 5 6
# File 'lib/ruby/to_time.rb', line 4 def to_time self end