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

On Jan 25, 11:48 pm, Ahmy Yulrizka <ahmy...@gmail.com> wrote:
> Checkouthttp://ruby-doc.org/stdlib-1.9.3/libdoc/date/rdoc/Date.html#method-c-...
> assuming you use 1.9.3, there is also #strptime
>
> Ahmy Yulrizka
>
>
>
>
>
>
>
> On Thu, Jan 26, 2012 at 4:55 AM, Erwin <yves_duf...@mac.com> wrote:
> > From my form , using  jQuery Datepicker , I get dates in textfields
> > 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
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Ruby on Rails: Talk" group.
> > To post to this group, send email to rubyonrails-talk@googlegroups.com.
> > To unsubscribe from this group, send email to
> > rubyonrails-talk+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to