I have a calendar. I want to display date in format like(Sat Nov 12)
but currently, It is showing like(11/12/2022).
But Required format(Sat Nov 12).
What I have tried:
$(function () {
$("#txtFrom").datepicker({
numberOfMonths: 1,
onSelect: function (selected) {
var dt = new Date(selected);
dt.setDate(dt.getDate() + 1);
$("#txtTo").datepicker("option", "minDate", selected);
$(this).change(checkDayTripDates($(this)));
}
});
Also, I have tired like this type
$(function() {
$("#txtFrom").datepicker({
dateFormat: 'yy-mm-dd'
}).bind("change", function() {
var minValue = $(this).val();
minValue = $.datepicker.parseDate("yy-mm-dd", minValue);
minValue = minValue.getDate() + 1;
minValue = $.datepicker.parseDate("ddd MMM,dd", minValue);
minValue.setDate(minValue);
$("#txtFrom").datepicker("option", "minDate", minValue);
})
});
but ,it's not working correctly