currently arrival date and departure date format is m/d/y..can i change the date format to d/m/y??

  <link href="" rel="stylesheet" type="text/css"/>
  <script type="text/javascript" src=""></script>
  <script src=""></script>

  $(document).ready(function() {

<form method="post" action="4.php">

arrival date    <input type="textbox6" name="arrivaldate[]" id="datepicker"><br>
departure date  <input type="textbox7" name="departuredate[]" id="datepicker2"><br>

<input type="submit" name="submit" value="submit">

Recommended Answers

All 2 Replies

The link that you suggest is very helpful. Here's the correct code. Change the script part to this.

  $(document).ready(function() {
    $("#datepicker").datepicker({ dateFormat: "dd/mm/yy" });
    $("#datepicker2").datepicker({ dateFormat: "dd/mm/yy" });

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.