I'm using the bootstrap-datepicker-rails gem for datetime pickers. When I select a date, in the params it comes across in mm/dd/yyyy" format. I see this in the controller:
"start_date"=>"05/01/2018"
However, the model thinks it's dd/mm/yyyy:
(byebug) start_date
Fri, 05 Jan 2018
Here is my HTML:
<input data-provide="datepicker" class="form-control"
format="mm/dd/yyyy" placeholder="mm/dd/yyyy" type="text"
value="05/01/2018" name="gig[start_date]" id="gig_start_date">
How do I make the dates consistent?