Date formatting and solution model

Hi all, anyone tried to format a date using solution model?

Here is what I do:

var form = solutionModel.newForm('lst_equipment_detail',controller.getServerName(),"equipments",null,true,1,1);
var field = form.newCalendar(data_provider_name, x, y, w, h);
field.format = "dd-MM-yyyy";
field.formIndex = 3;

When I view the resulting form, I can click on the calendar icon, it shows the correct formatting,
but when I choose a date it is displayed following my formatting but rather like this: Thu Nov 19 00:00:00 EST 2009.

Anyone has an idea?

Thanks

Philippe

i can’t reproduce this.
Please make a case with a sample solution