I have used JQuery Datepicker where the date format is dd/mm/yyyy. I would like the date to be displayed as dd/mm/yy.
Eg. Instead of 15/07/2017, I would like the date to be shown as 15/07/17 in the datepicker.
This is how I am calling the JQuery datepicker, but it is not formating the date as per my need.
$( ".startdate" ).datepicker({
dateFormat: 'dd-mm-yy',
changeMonth: true,
changeYear: true
});
Is there any inbuilt option for this date format? Or is there a way to create a custom date format according to our own needs.