Skip to main content
A newer version of this page is available. .
Tab

NewsItemCollection.FindByDate(DateTime) Method

Returns an item by its date.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public NewsItem FindByDate(
    DateTime date
)

Parameters

Name Type Description
date DateTime

A DateTime structure that represents the date of the requested node.

Returns

Type Description
NewsItem

A NewsItem object with the specified date. null (Nothing in Visual Basic) if the item isn’t found.

Remarks

The FindByDate method returns the first item found whose NewsItem.Date property’s value matches the specified date.

See Also