time = Time.gm(2005, 12, 31, 13, 22, 33) four_digit_year_date = '%m/%d/%Y' time.strftime(four_digit_year_date) # => "12/31/2005"