1

Inside my controller, Im getting a params[:date] in portuguese format, like this: "dd/mm/YYYY". How do I change it back to mysql format? Im used to php, and there, i would create a function that uses explode, and then, I would have to concatenate the numbers with '-'.

Does rails have any function to convert this date better?

churros
  • 419
  • 1
  • 8
  • 20

0 Answers0