dateFormat by scripting

Is it possible to set the property format for datetime field, by scripting?

The following doesn’t work for you?

elements.myDateField.format = 'dd-MM-yyyy';

No it does’nt!

I can’t see the function, and does’nt work either.

Java class “com.servoy.j2db.dataui.DataCalendar” has no public instance field or method named “format”.

ah now I see! :-)

it does work on TEXT FIELD
but not on CALENDAR FIELD! :-(

i added those in 3.0