Skip to main content

Search and Top Navigation

#9716 closed bug (notabug)

Opened December 22, 2013 11:40AM UTC

Closed December 22, 2013 12:27PM UTC

datepicker no option is set by default date format

Reported by: tocv Owned by:
Priority: minor Milestone: none
Component: ui.datepicker Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:
Description

datepicker

no option is set by default date format

date

month

year

HELP!! HELP!! HELP!!


<!doctype html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>jQuery UI Datepicker - Format date</title>
	<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
	<script src="../../jquery-1.9.1.js"></script>
	<script src="../../ui/jquery.ui.core.js"></script>
	<script src="../../ui/jquery.ui.widget.js"></script>
	<script src="../../ui/jquery.ui.datepicker.js"></script>
	<link rel="stylesheet" href="../demos.css">
	<script>
	$(function() {
		$( "#datepicker" ).datepicker();
		$( "#format" ).change(function() {
			$( "#datepicker" ).datepicker( "option", "dateFormat", $( this ).val() );
		});
	});
	</script>
</head>
<body>

<p>Date: <input type="text" id="datepicker" size="30"/></p>

<p>Format options:<br />
	<select id="format">
		<option value="dd-mm-yy">Default - dd-mm-yy</option>
	</select>
</p>

<div class="demo-description">
<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>
</div>
</body>
</html>

Attachments (0)
Change History (3)

Changed December 22, 2013 11:42AM UTC by tocv comment:1

<option value="dd-mm-yy">Default - dd-mm-yy</option>

Sets the wrong format

Changed December 22, 2013 12:14PM UTC by tocv comment:2

$( "#datepicker" ).datepicker({

dateFormat: 'dd-mm-yy',

understood

everything is fine

closed

Changed December 22, 2013 12:27PM UTC by scottgonzalez comment:3

resolution: → notabug
status: newclosed