Use expression substitution to show the date in a user-specified format.
# This line of code uses the month, day, and year methods from Date. require 'date' date = Date.new( 2006, 11, 8 ) puts "The date was #{date.month}/#{date.day}/#{date.year}."