Here's my code and its result:
$(function () {
$('.temp').datepicker({
showWeek: true,
dateFormat: "dd/mm/yy",
defaultDate: "27/03/2018",
changeMonth: true,
changeYear: true
});
$(".temp").datepicker().datepicker("setDate", "26/03/2018");
});
I want to set my server computer date 26/03/2018 instead of client machine date 19/03/2018.
I tried both functions defaultDate and setDate but it's not working. It still shows the current date as 19/03/2018.
How to set server machine date as current date in jquery datepicker?