cancel
Showing results for 
Search instead for 
Did you mean: 

Date Format in XML-Forms

Former Member
0 Kudos

Hello,

following problem:

We are using XML forms for our news area. We set up a 'date' property in KM where the date (manually entered) of the news is stored. The layout set for the news sorts them using this property. Now when there are two news with the same date, it's random which one is displayed 1st. Only solution I see for this is making the property a 'timestamp', but we don't want to show the complete timestamp on the news, but only the date.

So the question is: Is it possible to show only the date-part of a timestamp within XML-Forms?

Thanks in advance

Reinhard

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Were you able the retrieve the timestamp as a whole?

I am stuck with a similar problem.

I need to show the "valid from" details of a XML resource.

It is of type "timestamp" as defined in the XML form. There is no appropriate schema data type available for the timestamp control. The available ones like "date" or u201Ctimeu201D or u201CStringu201D are not efficient enough to process a timestamp control. Probably this is why a separate u201Ctimestampu201D control was provided in the XML form builder.

Now coming back to the main problem, I need to show the u201CValid Fromu201D details of the resource, both as a whole and in edited form also, on the screen.

I tried to retrieve the same from the XML resource by giving the tag name but wasnu2019t able to achieve the result. It may be because the u201CValid Fromu201D is a standard attribute and getting stored as a metadata.

Please help me out with this.