I am using the UI DatePicker from jQuery UI as the stand alone picker. I have this code:
And the
Finally got the answer for datepicker date change method:
$('#formatdate').change(function(){ $('#datpicker').datepicker("option","dateFormat","yy-mm-dd"); });