Hi
I have a date_select in my view inside a form, however on submit the value returned is in a hash form like so:
{"(1i)"=>"2010", "(2i)"=>"8", "(3i)"=>"16"}
how can i convert that in to a Date format in rails so i can use it as a condition when querying the database e.g :condition => {:dates == :some_date_from_date_select}
? i tried calling Date.parse(:some_date_from_date_select)
but it didn't work because its expecting a string and not a hash map.
is there a rails way to do this?
thanks