With the today class method, you can create a date based on today's date: : today « Date « Ruby






With the today class method, you can create a date based on today's date:


require 'date'


today = Date.today
puts today.to_s 

 








Related examples in the same category