I'm using a CoreResultsWebPart to display the latest articles in a short list. To display the last modified Date and Time I've created a Managed Property called LastModifiedDateTime (I'm aware of the existings of LastModifiedTime, but this can't be used.) This works, but not with the expected results, since it only displays the Date and not the Date AND Time.
Creating the Managed Property:
Add New Managed Property
Property name: LastModifiedDateTime Include values from a single crawled property based on the order specified Has Multiple Values > Unchecked Crawled properties mapped to this managed property: Basic:14(Date and Time) Basic:16(Date and Time) ows_Modified(Date and Time) lastaccessed(Date and Time) Allow this property to be used in scopes Add managed property to custom results set retrieved on each query. Note: Only the first 2 kilobytes of data is available for display by default. > Checked
- Start full crawl
Display the Managed Property:
- Edit CoreResultsWebPart
- Add Fetched Properties
- Add XSL with the XSL-editor:
<xsl:for-each select="node()"> Property:<xsl:value-of select="name()"/> | Value:<xsl:value-of select="."/><br/> </xsl:for-each>
It displays the following result:
... Property:lastmodifieddatetime | Value:28-11-2012 ...
While the expected result was:
... Property:lastmodifieddatetime | Value:28-11-2012 10:34 ...
Thanks in advance