FilterSetDate()

Filters items based on the item date attribute specified by FilterDateType, the date value specified by Date, and the operation specified by Operation. Optionally, the filter can specify a user-defined field with type Date by setting the optional FieldName parameter. In this case the filter uses this field with Date and Operation to filter for items.

Token ID

AFTKN_FILTER_SET_DATE or 845

Syntax

VOID FilterSetDate(ENUM FilterHandleType; 
                    ENUM FilterDateType; 
                    [ANSISTRING FieldName]; 
                    [ANSISTRING UserID]; 
                    ENUM Operation; 
                    ENUM Date; 
                    [DWORD DateOffset])

Parameters

FilterHandleType As ENUM

Unique filter identifier, returned by FilterCreate():

  • 315 Default
FilterDateType As ENUM

Specifies the filter date type as follows:

112

AssignedDate

126

BeginDateTime

139

CreateDate

507

DeliveredDate

148

DueDate

151

EndDateTime

331

NamedField

FieldName As ANSISTRING

(Optional)

UserID As ANSISTRING

(Optional)

Operation As ENUM

Specifies the operation as follows:

320

Equal

321

GT

322

GTE

318

LT

319

LTE

Date As ENUM

Specifies the date as follows:

3

Month

235

Today

236

Tomorrow

2

Week

4

Year

271

Yesterday

DateOffset As DWORD

(Optional)