Forum: Ruby on Rails Date transform

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
96e719b743c8cd7bd40ee8dbf936d86e?d=identicon&s=25 irong (Guest)
on 2006-05-17 00:25
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?


40db9e75b3f5899258e3bdc0c9210154?d=identicon&s=25 Conrad Taylor (Guest)
on 2006-05-18 02:37
(Received via mailing list)
Hi Irong, I would recommend using pop menus for both year, month, and
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,

96e719b743c8cd7bd40ee8dbf936d86e?d=identicon&s=25 irong (Guest)
on 2006-05-18 02:46
yes i used that now, thanks for answer
This topic is locked and can not be replied to.