title: Changing the format of textbox date to another textbox on the fly
body: <p>I want a user to see a detailed date when he selects a day from the jQuery Datepicker. However the format I want to post and save in the database has to be different that the one showed.</p>
  
  <p>As you see, the 2 textboxes have this <code>DD, d MM yy</code> format. This is what I want to show to the people so it stays that way. But for my code to work correctly, this date must be saved in the database in the format of <code>Y-m-d</code> (like 2012-03-23)</p>
  
  <p>I want to avoid using PHP code after the form submits for the transformation. Maybe with a hidden field that automatically gets and transforms the value of <code>#enarksi</code> and <code>#liksi</code> ? After that I will post the hidden's fields value.</p>
  
  <pre><code>$(document).ready(function() {
  
      var date = new Date();
      var m = date.getMonth(),
          d = date.getDate(),
          y = date.getFullYear();
  
      $('#enarksi, #liksi').datepicker({
          minDate: new Date(y, m, d),
          dateFormat: 'DD, d MM yy'
      });
  
      $("#enarksi, #liksi").datepicker($.datepicker.regional["el"]);
  
  });
  </code></pre>