Parse Date/DateTime from date_select parameters

This Rails helper allows simple parsing of params that have originated from ActionView’s date_select helper method into a Date or DateTime object in a consistent and clean way.