hi,
I do have a problem of the real value with this line of Jquery code
$("#<%=lblCheckinViewoData.ClientID%>").datepicker({ dateFormat: "yy/mm/dd" }).datepicker("setDate", (result.reservationInfo[0].Checkin));
Actually this
result.reservationInfo[0].Checkin
gives 2016/03/10, from my pagemethod function in c# which the value is coming from my database.
But in Jquery it is passing a current datetime which is 2016/04/24 to a lblCheckinViewoData.
I dont know if it is because of this setDate parameter.
Please help me getting the real value from my database cause the value in sql server is 2016/03/10
What I have tried:
PageMethods.GetReservationById(aData[index], function (response) {
var result = eval("(" + response + ")");
if ($('#<%=lblCheckinViewoData.ClientID%>').length > 0) {
$("#<%=lblCheckinViewoData.ClientID%>").datepicker({ dateFormat: "yy/mm/dd" }).datepicker("setDate", (result.reservationInfo[0].Checkin));
$("#<%=lblCheckoutViewoData.ClientID%>").datepicker({ dateFormat: "yy/mm/dd" }).datepicker("setDate", (result.reservationInfo[0].Checkout));
}
});