date = Date.new date.strftime('%d/%m/%Y') # => "25/03/2022" date.strftime('%Y/%m/%d') # => "2022/03/25"