4 <title>jQuery UI Datepicker - Format date</title>
5 <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
6 <script type="text/javascript" src="../../jquery-1.3.2.js"></script>
7 <script type="text/javascript" src="../../ui/ui.core.js"></script>
8 <script type="text/javascript" src="../../ui/ui.datepicker.js"></script>
9 <link type="text/css" href="../demos.css" rel="stylesheet" />
10 <script type="text/javascript">
12 $("#datepicker").datepicker();
13 $("#format").change(function() { $('#datepicker').datepicker('option', {dateFormat: $(this).val()}); });
21 <p>Date: <input type="text" id="datepicker" size="30"/></p>
23 <p>Format options:<br />
25 <option value="mm/dd/yy">Default - mm/dd/yy</option>
26 <option value="yy-mm-dd">ISO 8601 - yy-mm-dd</option>
27 <option value="d M, y">Short - d M, yy</option>
28 <option value="d MM, y">Medium - d MM, yy</option>
29 <option value="DD, d MM, yy">Full - DD, d MM, yy</option>
30 <option value="'day' d 'of' MM 'in the year' yy">With text - 'day' d 'of' MM 'in the year' yy</option>
34 </div><!-- End demo -->
36 <div class="demo-description">
38 <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>
40 </div><!-- End demo-description -->