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