44cfba8548ca2b2cb5fd72e807533a1f2df3388b
[myslice.git] / third-party / jquery-ui-1.10.2 / demos / datepicker / date-formats.html
1 <!doctype html>
2 <html lang="en">
3 <head>
4         <meta charset="utf-8">
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">
12         <script>
13         $(function() {
14                 $( "#datepicker" ).datepicker();
15                 $( "#format" ).change(function() {
16                         $( "#datepicker" ).datepicker( "option", "dateFormat", $( this ).val() );
17                 });
18         });
19         </script>
20 </head>
21 <body>
22
23 <p>Date: <input type="text" id="datepicker" size="30"/></p>
24
25 <p>Format options:<br />
26         <select id="format">
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>
33         </select>
34 </p>
35
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>
38 </div>
39 </body>
40 </html>