I’ve used date_select to create page with three fields to create a date, and so my session ends up with the following fields in it:
{"CompanyUk"=>{"company_number"=>"12345",
"incorporation_date(1i)"=>"2011",
"incorporation_date(2i)"=>"5",
"incorporation_date(3i)"=>"27"}}
What is a good way to reconstruct the date from the three separate fields? Obviously, I can pull them out one-by-one and reassemble, but that seems like a lot of extra code over what would be possible.
1 Answer