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 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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs