Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<link class="jsbin" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
<link type="text/css" href="http://jqueryui.com/demos/datepicker/../../themes/base/jquery.ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="http://jqueryui.com/demos/datepicker/../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="http://jqueryui.com/demos/datepicker/../../ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="http://jqueryui.com/demos/datepicker/../../ui/jquery.ui.datepicker.js"></script>
<link type="text/css" href="http://jqueryui.com/demos/datepicker/../demos.css" rel="stylesheet" />
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <div class="demo">
<p>Date: <input type="text" id="datepicker"></p>
</div>
</body>
</html>
 
$(function() {
  $("#datepicker").datepicker({
      dateFormat: "dd-mm-yy", 
      minDate: '-2Y'
      //maxDate: maxDate
  });
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers