~jstys-z/helioviewer.org/timeline

« back to all changes in this revision

Viewing changes to lib/jquery/jquery.ui-1.7.1/development-bundle/demos/datepicker/date-formats.html

  • Committer: V. Keith Hughitt
  • Date: 2009-03-26 19:20:57 UTC
  • Revision ID: hughitt1@kore-20090326192057-u0x8rf8sf5lmmnwh
nightly build 03-26-2009: Using alpha-channel JPEG 2000 dataset

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!doctype html>
 
2
<html lang="en">
 
3
<head>
 
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">
 
11
        $(function() {
 
12
                $("#datepicker").datepicker();
 
13
                $("#format").change(function() { $('#datepicker').datepicker('option', {dateFormat: $(this).val()}); });
 
14
        });
 
15
        </script>
 
16
</head>
 
17
<body>
 
18
 
 
19
<div class="demo">
 
20
 
 
21
<p>Date: <input type="text" id="datepicker" size="30"/></p>
 
22
 
 
23
<p>Format options:<br />
 
24
        <select id="format">
 
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>
 
31
        </select>
 
32
</p>
 
33
 
 
34
</div><!-- End demo -->
 
35
 
 
36
<div class="demo-description">
 
37
 
 
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>
 
39
 
 
40
</div><!-- End demo-description -->
 
41
 
 
42
</body>
 
43
</html>