/[projects]/misc/horsensspejder-web/jquery/jquery-ui-1.10.3/demos/datepicker/date-formats.html
ViewVC logotype

Annotation of /misc/horsensspejder-web/jquery/jquery-ui-1.10.3/demos/datepicker/date-formats.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2125 - (hide annotations) (download) (as text)
Wed Mar 12 19:30:05 2014 UTC (10 years, 4 months ago) by torben
File MIME type: text/html
File size: 1368 byte(s)
initial import
1 torben 2125 <!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>

  ViewVC Help
Powered by ViewVC 1.1.20