title: How to format date with hours, minutes and seconds when using jQuery UI Datepicker?
body: <p>Is it possible to format a date with <a href="http://jqueryui.com/datepicker/" rel="noreferrer">jQuery UI Datepicker</a> as to show hours, minutes and seconds?</p>
  
  <p>This is my current mockup:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(function() {
      $('#datepicker').datepicker({ dateFormat: 'yyy-dd-mm HH:MM:ss' }).val();
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
  &lt;head&gt;
    &lt;link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css"&gt;
    &lt;title&gt;snippet&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
    &lt;input type="text" id="datepicker"&gt;
  
    &lt;script src="https://code.jquery.com/jquery-1.12.4.min.js"&gt;&lt;/script&gt;
    &lt;script src="https://code.jquery.com/ui/1.9.2/jquery-ui.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>When I call <code>.datepicker({ dateFormat: 'yyy-dd-mm HH:MM:ss' })</code> the returned value is:</p>
  
  <blockquote>
    <p>201313-07-03 HH:July:ss</p>
  </blockquote>
  
  <p>Here is a <a href="http://jsfiddle.net/Qv36W/1/" rel="noreferrer">JSFiddle</a>.</p>