I’m using the following datetimepicker which from my understanding is the jquery-ui datepicker that has been extended.
http://trentrichardson.com/examples/timepicker/
My issue is I want to display to the user am and pm times, but I want to format it differently so that when I submit it to a mysql database, the time format enters the standard “YY-mm-dd – hh:mm:ss” format.
This is the format that it currently inputs

For people with the same issue as the above, I received some good advice from the developer of the above plugin that the responsibility for formatting should belong in the middleware (ruby, php, python, etc). So after doing some searching I found the following gem and added to my Gemfile.
This plugin relies on the timeliness gem and has many built in functions that accepts many different formats out of the box.
Add this to your model and you’re done:
You may run into the scenario where you may need a custom parser. If so just add the following to your validates_timeliness.rb initializer.