Page 1 of 1

Formating the datepicker

Posted: Sun Sep 28, 2014 2:05 pm
by Arjang Raoufinia

Hi,
Currently, on datepicker, if I pick a date it will show 09/18/2014 for example. I need to change it so it will show Sat, 19 Sep 2014 instead. I have used the following js on page load:

Appery("mobiledatepicker_148").setProperty("defaultDateValue", $.datepicker.formatDate("ddd, d mmm yyyy", new Date()));

and no luck. what am I doing wrong?


Formating the datepicker

Posted: Sun Sep 28, 2014 3:57 pm
by Alena Prykhodko

Hello,

Please look at the similar post https://getsatisfaction.com/apperyio/...


Formating the datepicker

Posted: Mon Sep 29, 2014 1:15 am
by Arjang Raoufinia

I read thru your recommendation and I have this JS on load:

Appery("mobiledatepicker_148").setProperty("defaultDateValue", $.datepicker.formatDate("ddd, d mmm yyyy", new Date()));

The datepicker on the input still shows 9/27/2014 and does not show the new format.

Please help.
Thanks,


Formating the datepicker

Posted: Mon Sep 29, 2014 1:15 pm
by Kateryna Grynko

Hi Arjang,

If you want to format selected date in the Datepicker input, please add the following code on Page Show event for the page where you have this datepicker:preApperyio("mobiledatepicker_12").datepicker_dataPickerOptions.dateFormat = "DD, d M yy";
Apperyio("mobiledatepicker_12").initializeDataPicker();/preWhere mobiledatepicker_12 is a datepicker name.