anyway to parse a localized date string into a Date object ?

already formatted as :

Parameters: { "project"=>{ "start_shooting_date"=>"Mercredi 1 Février, 2012", "latest_publish_date"=>"Mercredi 8 Février, 2012"}...}

is there any way to parse and convert these dates ?

there is a trick: I can store more convertible values in hidden textfields ... but it's a trick...

thanks for your feedback

erwin

Checkout http://ruby-doc.org/stdlib-1.9.3/libdoc/date/rdoc/Date.html#method-c-parse

assuming you use 1.9.3, there is also #strptime

Ahmy Yulrizka

Thanks , I already tried that , but it's a localized string... Date.parse("Mercredi 1 Février, 2012")

even if the I18n.locale = :fr ( french) it raises an error => ArgumentError: invalid date