www.webdeveloper.com
Results 1 to 4 of 4

Thread: Datepicker in mm/dd/yy format

  1. #1
    Join Date
    Sep 2013
    Posts
    221

    Datepicker in mm/dd/yy format

    Hello,
    I have the below code with generate date format calender. It properly works for mm/dd/yy format


    PHP Code:

    <html lang="en">
    <
    head>
    <
    meta charset="utf-8">
    <
    title>jQuery UI Datepicker - Default functionality</title>
    <
    link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
    <
    script src="http://code.jquery.com/jquery-1.9.1.js"></script>
    <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
    <link rel="stylesheet" href="/resources/demos/style.css">
    <script>
    $(function() {
    $( "#datepicker" ).datepicker();
    });
    </script>
    </head>
    <body>

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


    </body>
    </html> 
    But i want datepicker in dd/mm/yy format. i.e 24/01/14 (dd/mm/yy) format
    Can some one help me out. I am quite stuck.
    Any kind of help is appreciated

  2. #2
    Use this code for using the Datepicker in dd/mm/yy format :

    $( "#datepicker" ).datepicker({ dateFormat: 'dd/mm/yy' });
    jQuery UI is a big library. Try to use something light. You can also have a look at other useful jQuery Datepickers available.

  3. #3
    Join Date
    Aug 2014
    Location
    Banglor
    Posts
    7
    Try Zebra_Date picker in this date picker there is an option for your format to set a date

    visit this website for demo and show example no:8
    http://stefangabos.ro/jquery/zebra-datepicker/

  4. #4
    Join Date
    Aug 2014
    Posts
    14
    Use this
    $(id).datepicker({dateFormat: "yyyy/mm/dd"});

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles