Arjang Raoufinia
Posts: 0
Joined: Tue Sep 02, 2014 1:58 pm

Formating the datepicker

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?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Formating the datepicker

Hello,

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

Arjang Raoufinia
Posts: 0
Joined: Tue Sep 02, 2014 1:58 pm

Formating the datepicker

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,

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Formating the datepicker

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.

Return to “Issues”