Page 2 of 2

saving datepicking selected data in local storage variable

Posted: Mon Jan 14, 2013 2:47 pm
by Maryna Brodina

1) It seems there is no way to change date format
2) Use this code on screen Load to set current date in Input component:

codevar currDate = new Date();
var year, month, day;
year = currDate.getFullYear();
month = currDate.getMonth()+1;
if (month<10) {
month = '0' + month;
}
day = currDate&#46;getDate();
if (day<10) {
day = '0' + day;
}
Tiggzi("mobiletextinput1_17")&#46;val(year + '&#46;' + month + '&#46;' + day);/code

This should also help http://dev.jtsage.com/jQM-DateBox/

Also could you please share your project with support@tiggzi.com? So we can check and help you with DatePicker component because it works for me. Maybe there is some error in your project.