Date Ruby

require 'date'
puts Date.parse('2/9/07').to_s                          # => "0007-02-09"