Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

How can I change the date format of Datepicker at runtime

Hi Team,

How can I change the date format of datepicker at runtime?

My application needs to detect the datePattern of mobile device and adjust the date format of picker.

I tried to use what's available on Jquery mobile documentation.
$.datepicker.setDefaults("dateFormat","yy-mm-dd');
OR
$.("[dsid=datepickerName]").datepicker("option","dateFormat","yy-mm-dd");

But they don't work.

Thanks

Dongzhi

Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

How can I change the date format of Datepicker at runtime

That helps! Thanks
However, seriously I think you can consider improving your documentation.

Return to “Issues”