Oracle® WebCenter Interaction Development Kit 10.3.3.0.0

ISearchResult.GetFieldAsDate Method 

Gets the value of the specified Field as a DateTime.

DateTime GetFieldAsDate(
   Field field
);

Parameters

field

Return Value

The DateTime value of the field.

Remarks

Note: DateTimes in the search server are only accurate to four minutes, as the double used to store dates in the portal is converted to float.

Exceptions

Exception Type Condition
ArgumentException The field is not present in this ISearchResult.
InvalidCastException The value of the field is not of type Date or the value is null. Use GetFieldAsObject() to check if the value is null.

See Also

ISearchResult Interface | Plumtree.Remote.PRC.Search Namespace