Opened 9 years ago

Closed 9 years ago

#9716 closed bug (notabug)

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:


datepicker no option is set by default date format date month year HELP!! HELP!! HELP!!

<!doctype html>
<html lang="en">
	<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">
	$(function() {
		$( "#datepicker" ).datepicker();
		$( "#format" ).change(function() {
			$( "#datepicker" ).datepicker( "option", "dateFormat", $( this ).val() );

<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>

<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>

Change History (3)

comment:1 Changed 9 years ago by tocv

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

Sets the wrong format

comment:2 Changed 9 years ago by tocv

$( "#datepicker" ).datepicker({

dateFormat: 'dd-mm-yy',

understood everything is fine


comment:3 Changed 9 years ago by Scott González

Resolution: notabug
Status: newclosed
Note: See TracTickets for help on using tickets.