Forum: Ruby on Rails storing localized date into DB

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ee0293412faca21e4ebf3326ed9d5f8c?d=identicon&s=25 Kad Kerforn (kadoudal)
on 2009-01-11 19:53
(Received via mailing list)
receiving a date string param[:company][:contracted_on]  like
"11/01/2009"    (format "%e/%m/%Y")

what should I write to convert the params into an acceptable DateTime
attribute in the DB,  ?
(in a before_save in my model... )

thanks for your suggestions

Happy New Rails btw ..

erwin
This topic is locked and can not be replied to.