This project is read-only.

For Column of type Date and Time, and format date only, Date required in facet value not time

Sep 25, 2009 at 12:59 PM

I created a site column named AsOfDate, of
type: Date and Time, and
format: Date only,
and attached it to the Documents library. Then created a Managed property for this field with mapping ows_AsOfDate(Date and Time).
Now when this appears in the search facet webpart it shows date and time (like 9/10/2009 12:00:00 AM).
Is there any way so that this time doesnot appear in the facets as my column is of format date only.
Thanks in Advance
Amit Tuteja

Sep 25, 2009 at 4:19 PM

Not in this release. It is possible though.

Sep 29, 2009 at 12:07 PM



Thanks for info.

Can you please let me know how it can be achieved?




Oct 3, 2009 at 9:17 PM

The quickest way is to modify the code in Templates.cs that is responsible for Facet rendering and use desired formatting of the DateTime value. However, be aware that the ows managed property is passed by MOSS as text, so type automation is problematic.