Then in my jquery I wanted to check the date it is getting so I added an alert:

function CheckIfDateChanged(date)
{
alert(date);
}

The

onblur

seems to get called before the textbox actually changes with the new date. So if the current date is 28/10/2016 and I change it to 29/10/2016 the alert shows 28/10/2016. Then the date changes after I close the alert message.

How do I know if the date gets changed when they select the new date from the datepicker?