Subversion Repositories Sites.obs-saisons.fr

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
40 aurelien 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.4.2.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
<div class="demo">
24
 
25
<p>Date: <input type="text" id="datepicker" size="30"/></p>
26
 
27
<p>Format options:<br />
28
	<select id="format">
29
		<option value="mm/dd/yy">Default - mm/dd/yy</option>
30
		<option value="yy-mm-dd">ISO 8601 - yy-mm-dd</option>
31
		<option value="d M, y">Short - d M, y</option>
32
		<option value="d MM, y">Medium - d MM, y</option>
33
		<option value="DD, d MM, yy">Full - DD, d MM, yy</option>
34
		<option value="'day' d 'of' MM 'in the year' yy">With text - 'day' d 'of' MM 'in the year' yy</option>
35
	</select>
36
</p>
37
 
38
</div><!-- End demo -->
39
 
40
 
41
 
42
<div class="demo-description">
43
<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>
44
</div><!-- End demo-description -->
45
 
46
</body>
47
</html>