How to set date format


How I make this that when pick any date the fate show in text box like: DD-MM-YYYY

<!doctype html>
<html lang="en">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>jQuery UI Datepicker - Restrict date range</title>
  <link rel="stylesheet" href="//">
  <link rel="stylesheet" href="/resources/demos/style.css">
  <script src=""></script>
  <script src=""></script>
  $( function() {
    $( "#datepicker" ).datepicker({ minDate: -30, maxDate: "0D" });
  } );
<p>Date: <input type="text" id="datepicker"></p>


closed #3

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.