Page 1 of 1

How can I change the date format of Datepicker at runtime

Posted: Thu Sep 17, 2015 7:00 am
by Dongzhi Yang7528784

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


How can I change the date format of Datepicker at runtime

Posted: Thu Sep 17, 2015 11:10 am
by Serhii Kulibaba

Hello,

Please look this topic: https://getsatisfaction.com/apperyio/...


How can I change the date format of Datepicker at runtime

Posted: Thu Sep 17, 2015 12:13 pm
by Dongzhi Yang7528784

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