DateComparisonField

Inheritance: java.lang.Object, com.aspose.email.QueryField, com.aspose.email.ComparisonField

public final class DateComparisonField extends ComparisonField

Represents the date search field.

Methods

Method Description
before(Date value) Indicates that the date in message must be earlier than the specified date.
before(Date value, int comparisonType) Indicates that the date in message must be earlier than the specified date.
beforeOrEqual(Date value) Indicates that the date in message must be earlier or equel to the specified date.
beforeOrEqual(Date value, int comparisonType) Indicates that the date in message must be earlier or equel to the specified date.
since(Date value) Indicates that date in message must be within or later than the specified date.
greater(Date value) Indicates that date in message must be later than the specified date.
greater(Date value, int comparisonType) Indicates that date in message must be later than the specified date.
since(Date value, int comparisonType) Indicates that date in message must be within or later than the specified date.
on(Date value) Indicates that the date in message must be within the specified date.
on(Date value, int comparisonType) Indicates that the date in message must be within the specified date.
notOn(Date value) Indicates that the date in message must not be in the specified date.
notOn(Date value, int comparisonType) Indicates that the date in message must not be in the specified date.

before(Date value)

public final MailQuery before(Date value)

Indicates that the date in message must be earlier than the specified date.

Parameters:

Parameter Type Description
value java.util.Date The value.

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

before(Date value, int comparisonType)

public final MailQuery before(Date value, int comparisonType)

Indicates that the date in message must be earlier than the specified date.

Parameters:

Parameter Type Description
value java.util.Date The value.
comparisonType int Specifies a type of comparison

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

beforeOrEqual(Date value)

public final MailQuery beforeOrEqual(Date value)

Indicates that the date in message must be earlier or equel to the specified date.

Parameters:

Parameter Type Description
value java.util.Date The value.

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

beforeOrEqual(Date value, int comparisonType)

public final MailQuery beforeOrEqual(Date value, int comparisonType)

Indicates that the date in message must be earlier or equel to the specified date.

Parameters:

Parameter Type Description
value java.util.Date The value.
comparisonType int Specifies a type of comparison

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

since(Date value)

public final MailQuery since(Date value)

Indicates that date in message must be within or later than the specified date.

Parameters:

Parameter Type Description
value java.util.Date The value.

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

greater(Date value)

public final MailQuery greater(Date value)

Indicates that date in message must be later than the specified date.

Parameters:

Parameter Type Description
value java.util.Date The value.

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

greater(Date value, int comparisonType)

public final MailQuery greater(Date value, int comparisonType)

Indicates that date in message must be later than the specified date.

Parameters:

Parameter Type Description
value java.util.Date The value.
comparisonType int Specifies a type of comparison

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

since(Date value, int comparisonType)

public final MailQuery since(Date value, int comparisonType)

Indicates that date in message must be within or later than the specified date.

Parameters:

Parameter Type Description
value java.util.Date The value.
comparisonType int Specifies a type of comparison

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

on(Date value)

public final MailQuery on(Date value)

Indicates that the date in message must be within the specified date.

Parameters:

Parameter Type Description
value java.util.Date The value.

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

on(Date value, int comparisonType)

public final MailQuery on(Date value, int comparisonType)

Indicates that the date in message must be within the specified date.

Parameters:

Parameter Type Description
value java.util.Date The value.
comparisonType int Specifies a type of comparison

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

notOn(Date value)

public final MailQuery notOn(Date value)

Indicates that the date in message must not be in the specified date.

Parameters:

Parameter Type Description
value java.util.Date The value.

Returns: MailQuery - MailQuery that represents search query (one searching criterion).

notOn(Date value, int comparisonType)

public final MailQuery notOn(Date value, int comparisonType)

Indicates that the date in message must not be in the specified date.

Parameters:

Parameter Type Description
value java.util.Date The value.
comparisonType int Specifies a type of comparison

Returns: MailQuery - MailQuery that represents search query (one searching criterion).