Skip to Content
Former Member
Oct 22, 2015 at 02:54 PM

Change Date format in cockpit editor area


Hi all,

I want to change the date format from a Date field in my EditorArea.

At the moment it looks this way: alt text

Editor area xml looks the following way:

 <?xml version="1.0" encoding="UTF-8"?>
     <group qualifier="General" visible="true" initially-opened="true">
         <property qualifier="MyModel.openingSchedule.openingDays" visible="true"  />

The opening days is a list with several days.

And my base Editor for openingDays (resp. WeekdayOpeningDay) looks so:

 <?xml version="1.0" encoding="UTF-8"?>
 <base xmlns:xsi="" xsi:noNamespaceSchemaLocation="base.xsd">
         <property qualifier="WeekdayOpeningDay.dayOfWeek"/>
         <property qualifier="WeekdayOpeningDay.openingTime" />
         <property qualifier="WeekdayOpeningDay.closingTime" />

OpeningTime and closingTime are Dates and dayOfWeek is an Enum. I use this base.xml to show the details of the openingDay and not just the pk.

I would like to change the Date format in the following way: MONDAY - 08:00:00 - 18:00:00 --> Only the Enum Value and the times.

In addition to that I would like to have an editor for the times, so that I can change them.

Do you have any idea how to change the display of the date?