Page 2 of 2

datepicker minimum date?

Posted: Wed Oct 22, 2014 7:22 am
by Evgene Karachevtsev

Hello She,

On value change event of datepicker please save the date from datepicker in local storage variable and then on the same event set text of the desired label from local storage variable. Please see the screenshots

Image

Image

Image


datepicker minimum date?

Posted: Wed Oct 22, 2014 8:23 am
by She

hi sir,
i want my date format will be like this in the label

mmddyy

everytime i click the dates.

here is my code, but its not working well.

Appery("lblLogDate").text( $.datepicker.formatDate("mmddyy", new Date()) );


datepicker minimum date?

Posted: Wed Oct 22, 2014 8:24 am
by She

btw thanks for responding


datepicker minimum date?

Posted: Wed Oct 22, 2014 8:35 am
by She

datepicker minimum date?

Posted: Wed Oct 22, 2014 8:36 am
by Evgene Karachevtsev

She,

What is your date format in datepicker?


datepicker minimum date?

Posted: Wed Oct 22, 2014 8:42 am
by She

m-d-yy


datepicker minimum date?

Posted: Wed Oct 22, 2014 8:44 am
by She

i want to be the format in my label is no separator
like the left screenshot


datepicker minimum date?

Posted: Wed Oct 22, 2014 8:51 am
by She

here is my code in Java Run
Appery("lblLogDate").text( $.datepicker.formatDate("mmddyy", new Date()) );


datepicker minimum date?

Posted: Wed Oct 22, 2014 9:41 am
by Evgene Karachevtsev

She,

You shouldn't use formatDate in this case. Just remove the "-" character from a string
preAppery("lblLogDate").text( Apperyio("mobiledatepickerName").getAttr('defaultDateValue').replace(/-/g, ""));/pre


datepicker minimum date?

Posted: Thu Oct 23, 2014 12:10 am
by She

thank you now it works :)