Date transform

hi all,

i want my users to enter a date in “ddmmyyyy” format, do someone know
how may i transform it in “yyyy-mm-dd” in the controler before i add it
to the base please?

thks

irong

Hi Irong, I would recommend using pop menus for both year, month, and
day.
This would eliminate parsing of a date from a user and make their life
easier as well. BTW, you’ll use the date SQL type or if you’re using
migrations, you’ll use the date ruby type.

Good luck,

-Conrad

yes i used that now, thanks for answer