- TIBCO BusinessEvents®
- Standard
- Instance
- PropertyArray

# Instance.PropertyArray.indexOfDateTime()

## Signature

`int indexOfDateTime(PropertyArrayDateTime arr, DateTime value)`

## Domain

ACTION, CONDITION, QUERY, BUI

## Description

Returns the index in the PropertyArrayDateTime of the first occurrence of the specified DateTime value, or -1 if the PropertyArrayDateTime does not contain this DateTime value.

## Parameters

Name | Type | Description
--- | --- | ---
`arr` | `PropertyArrayDateTime` | The `PropertyArrayDateTime` for searching.
`value` | `DateTime` | The specified `DateTime` value to search for.

## Returns

Type | Description
--- | ---
`int` | The index of `value` in the given PropertyArrayDateTime.

## Cautions

none