5 <title>jQuery UI Datepicker - Format date</title>
6 <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
7 <script src="../../jquery-1.9.1.js"></script>
8 <script src="../../ui/jquery.ui.core.js"></script>
9 <script src="../../ui/jquery.ui.widget.js"></script>
10 <script src="../../ui/jquery.ui.datepicker.js"></script>
11 <link rel="stylesheet" href="../demos.css">
14 $( "#datepicker" ).datepicker();
15 $( "#format" ).change(function() {
16 $( "#datepicker" ).datepicker( "option", "dateFormat", $( this ).val() );
23 <p>Date: <input type="text" id="datepicker" size="30"/></p>
25 <p>Format options:<br />
27 <option value="mm/dd/yy">Default - mm/dd/yy</option>
28 <option value="yy-mm-dd">ISO 8601 - yy-mm-dd</option>
29 <option value="d M, y">Short - d M, y</option>
30 <option value="d MM, y">Medium - d MM, y</option>
31 <option value="DD, d MM, yy">Full - DD, d MM, yy</option>
32 <option value="'day' d 'of' MM 'in the year' yy">With text - 'day' d 'of' MM 'in the year' yy</option>
36 <div class="demo-description">
37 <p>Display date feedback in a variety of ways. Choose a date format from the dropdown, then click on the input and select a date to see it in that format.</p>