I am getting a date and a time from 2 input boxes with datebox plugin.
I have the date as "16-01-2015" and time as "11:37 AM". I need to send both to my server to add to the database but my database need the date in format: "2015-01-16 21:11:00"
How can I convert my both strings in a date or a string with the other format? I also need to convert 12 hour time to 24h time.