Please do not attach compressed files here (.zip, .rar). For security
reasons, nobody will download them.
If you have some problem with your PHP, you will need to find
some PHP forum to help you with your PHP.
If you need to massage the value into some specific format that you
need for MySQL, that is something you can do in PHP. But this forum is
about jQuery. You might also change the format around in jQuery, but,
really, it would be better to do it on the server, since the reason
you need to change is is because of a requirement of your server
software (mySQL).
When you have some problem with jQuery, we can help!
If you tell us what date format you need for mySQL, and provide
some demo (that does not use PHP, since we do not deal with PHP here -
just use plain HTML) then we can show you how to change the date
format in jQuery.
jsFiddle or Plunkr are good ways to make a demo.