Date1 and Date2 properties

Date1 sets or returns the first date in a date-constrained search.

Date2 sets or returns the second date in a date-constrained search.

Note:

  • The Visual Basic Date data type is an 8-byte floating point number that includes both a date portion and a time portion. Because searching for times with the Server Access API does not always produce accurate results, do not specify a time portion for date variables you create with Visual Basic.

  • The time portion of the date is ignored.

Syntax


C++

HRESULT get_Date1(DATE* pDate1)
HRESULT get_Date2(
DATE* pDate2)

HRESULT put_Date1(DATE myDate1)
HRESULT put_Date2(
DATE myDate2)

Scripting languages

Date = Room Searcher.Date1
Date
= Room Searcher.Date2

Room Searcher.Date1 = Date
Room Searcher
.Date2 = Date

Remarks


Use Date1 to set or return the following dates:

  • The date on which an item was created.

  • A date before which an item was created.

  • A date after which an item was created.

  • The first date in a series of dates on which the item could have been created.

Use Date2 to set or return the last date in a series of dates on which the item you are searching for could have been created.

Date1 is ignored if the the value of the DateOp property is set to erDateOperAny.

Date2 is ignored if the the value of the DateOp property is set to erDateOperAny, erDateOperOn, erDateOperBefore, or erDateOperAfter.

Home

Applies to

IERUSearchCriteria


See also

Searching