/How to change datepicker format

How to change datepicker format

We can change Datepicker format using jquery and it will also work for bootstrap Datepicker. if you are going to build any web form or web applications. you need to add some registration forms may be its have some Datepicker operations.now its very simple using jquery UI.

STEP 1: first you just want to include jquery UI in your web application.

STEP 2: follow this given jquery standard to change the date format.

Example Format

$('input[id$=tbDate]').datepicker({
    dateFormat: 'dd-mm-yy'
});

you need to update your format like given below

  • dd-mm-yy
  • mm-dd-yy
  • yy-dd-mm

Demo Here