Attach Calendar to several text inputs with Date formating

Hi,

i have a problem with a form where i have 15 date field, so i have decided to attach the Calendar to several text inputs by using the following code:

mCal = new dhtmlxCalendarObject([‘DataSinistro’, ‘DataAnnuncioPA’, ‘DataNotificaCIA’]);

And this part works fine, but now I need to change the date from the format Y-m-d to the format d.m.Y, I have tried to combine the code with the date formatting code but this didn’t work.

Hi,

try setDateFormat method:

mCal.setDateFormat("%d.%m.%Y");

I’m sure that i have tried this solution… now it works fine!!!

Thank you Alexandra