Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 201
  • Last Modified:

How to change Bootstrap Datepicker Format ?

Hi Experts,

We are trying with datepicker to change the format . But when we give jquery to set the format its not working at all . Here is my code
<input name="txtDate" type="text" value="25-10-2016" id="txtDate" class="hasDatepicker">

Open in new window


Js Script
    $(function () { 
            $("#txtDate").datepicker({ dateFormat: 'dd-mm-yy' });

        })

Open in new window

0
karthik80c
Asked:
karthik80c
1 Solution
 
leakim971PluritechnicianCommented:
try this :

$(function () {
            $("#txtDate").datepicker({ format: 'dd-mm-yy' });

        })
1
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now