cancel
Showing results for 
Search instead for 
Did you mean: 

Change date/time format in XML

Former Member
0 Kudos

Hi,

I have changed the date format in KM, by adding 'customFormat=d MMM yyyy HH:mm'in the Additional Metadata field of a property (e.g. app_date). The change is properly displayed in KM Folders.

However when I change app_date into a custom format and then try to use it in a XML form, it doesn't work. It still uses the general settings, thereby ignoring my additional metadata.

Does anyone know how I can solve this issue?

Kind regards,

Joost

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi Christenhusz,

herewith im sending a thread...

hope it helps...

regards,

Vinoth

Former Member
0 Kudos

Hi Vinoth,

Thank you for your reply, but the problem is not that i want to display the date and time according to the countries format. On the contrary we want to make the make the date/time format independent of the language.

This works for KM Folders, only not for XML.

Kind regards,

Joost

Former Member
0 Kudos

hi Christenhusz,

Check the links,

Documentation:

http://java.sun.com/j2se/1.4.2/docs/api/java/text/DateFormat.html

customFormat

To set a customer pattern according to documentation:

http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html

hope it helps,

Regards,

Vinoth

Former Member
0 Kudos

Hi Vinoth,

I think you don't quite understand me. I know the documentation and it works!!!!

EXCEPT not in an XML form. So the problem lies in the form or something.

Greetings,

Joost

detlev_beutner
Active Contributor
0 Kudos

Dag Joost,

obviously, the XMLForms functionality does no refer to the additional format information set on the property itself. Have in mind that the XMLFormsBuilder is developed somewhat independently from the rest of the KM.

Anyhow, I think it would make sense the the FormBuilder accesses the property meta-information and so saves the format on the form. So I would suggest to open an OSS message, with good chances to be asked to open a DevelopmentRequest 😐

Hope it helps

Detlev

Former Member
0 Kudos

hello, is it possible now?

does it have solution on EP7?

Thanks!

Answers (0)