<div class="meta" robots="noindex">

</div>

Class

# iOSDatePicker

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2020r2. Please use `MobileDateTimePicker</api/user_interface/mobile/mobiledatetimepicker>` as a replacement.

</div>

## Description

This is the standard Button control for iOS.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                                   | Type                                             | Read-Only | Shared |
|--------------------------------------------------------|--------------------------------------------------|-----------|--------|
| `AccessibilityHint<iosdatepicker.accessibilityhint>`   | `Text</api/deprecated/text>`                     |           |        |
| `AccessibilityLabel<iosdatepicker.accessibilitylabel>` | `Text</api/deprecated/text>`                     |           |        |
| `CountDownDuration<iosdatepicker.countdownduration>`   | `Double</api/data_types/double>`                 |           |        |
| `DefaultDate<iosdatepicker.defaultdate>`               | `Xojo.Core.Date</api/deprecated/xojo.core.date>` |           |        |
| `Enabled<iosdatepicker.enabled>`                       | `Boolean</api/data_types/boolean>`               |           |        |
| `Height<iosdatepicker.height>`                         | `Double</api/data_types/double>`                 | ✓         |        |
| `Left<iosdatepicker.left>`                             | `Double</api/data_types/double>`                 | ✓         |        |
| `MaximumDate<iosdatepicker.maximumdate>`               | `Xojo.Core.Date</api/deprecated/xojo.core.date>` |           |        |
| `MinimumDate<iosdatepicker.minimumdate>`               | `Xojo.Core.Date</api/deprecated/xojo.core.date>` |           |        |
| `MinuteInterval<iosdatepicker.minuteinterval>`         | `Integer</api/data_types/integer>`               |           |        |
| `Mode<iosdatepicker.mode>`                             | `Modes<iosdatepicker.modes>`                     |           |        |
| `Name<iosdatepicker.name>`                             | `Text</api/deprecated/text>`                     | ✓         |        |
| `Parent<iosdatepicker.parent>`                         | `iOSControl</api/deprecated/ioscontrol>`         | ✓         |        |
| `Top<iosdatepicker.top>`                               | `Double</api/data_types/double>`                 | ✓         |        |
| `Visible<iosdatepicker.visible>`                       | `Boolean</api/data_types/boolean>`               |           |        |
| `Width<iosdatepicker.width>`                           | `Double</api/data_types/double>`                 | ✓         |        |

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                                               | Parameters                                                                                                                    | Returns                                                   | Shared |
|----------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------|--------|
| `AddConstraint<iosdatepicker.addconstraint>`       | constraint As `iOSLayoutConstraint</api/ios/ioslayoutconstraint>`                                                             |                                                           |        |
| `AddControl<iosdatepicker.addcontrol>`             | child As `MobileControl</api/user_interface/mobile/mobilecontrol>`                                                            |                                                           |        |
| `Control<iosdatepicker.control>`                   | index As `Integer</api/data_types/integer>`                                                                                   | `MobileControl</api/user_interface/mobile/mobilecontrol>` |        |
| `ControlCount<iosdatepicker.controlcount>`         |                                                                                                                               | `Integer</api/data_types/integer>`                        |        |
| `DefaultDate<iosdatepicker.defaultdate_method>`    | animate As `Boolean</api/data_types/boolean>`, `Assigns</api/language/assigns>` value As `DateTime</api/data_types/datetime>` |                                                           |        |
| `Handle<iosdatepicker.handle>`                     |                                                                                                                               | `Ptr</api/data_types/additional_types/ptr>`               |        |
| `Invalidate<iosdatepicker.invalidate>`             |                                                                                                                               |                                                           |        |
| `RemoveConstraint<iosdatepicker.removeconstraint>` | constraint As `iOSLayoutConstraint</api/ios/ioslayoutconstraint>`                                                             |                                                           |        |
| `RemoveControl<iosdatepicker.removecontrol>`       | child As `MobileControl</api/user_interface/mobile/mobilecontrol>`                                                            |                                                           |        |
| `SetTintColor<iosdatepicker.settintcolor>`         | value As `Color</api/data_types/color>`                                                                                       |                                                           |        |

## Events

<div class="rst-class">

table-centered_column_4

</div>

| Name                                       | Parameters | Returns |
|--------------------------------------------|------------|---------|
| `Close<iosdatepicker.close>`               |            |         |
| `Open<iosdatepicker.open>`                 |            |         |
| `ValueChanged<iosdatepicker.valuechanged>` |            |         |

## Enumerations

<div id="iosdatepicker.modes">

<div class="rst-class">

forsearch

</div>

</div>

iOSDatePicker.Modes

### Modes

Time, Date, DateAndTime, CountDownTimer

| Enum           |
|----------------|
| Time           |
| Date           |
| DateAndTime    |
| CountDownTimer |

## Property descriptions

<div id="iosdatepicker.accessibilityhint">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.AccessibilityHint

**AccessibilityHint** As `Text</api/deprecated/text>`

The accessibility hint is a longer description that is read aloud when VoiceOver is enabled.

``` xojo
Me.AccessibilityHint = "Click to calculate the value and display the next view."
```

<div id="iosdatepicker.accessibilitylabel">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.AccessibilityLabel

**AccessibilityLabel** As `Text</api/deprecated/text>`

The accessibility label of of a control is a short name that is read aloud when VoiceOver is enabled.

``` xojo
Me.AccessibilityLabel = "Calculate the value."
```

<div id="iosdatepicker.countdownduration">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.CountDownDuration

**CountDownDuration** As `Double</api/data_types/double>`

The countdown duration (in seconds) to display when DatePickerMode = CountDownTimer. Contains the selected value.

Set a date picker (in CountDownTimer mode) to 5 minutes:

``` xojo
CountDownPicker.CountDownDuration = 60 * 5
```

<div id="iosdatepicker.defaultdate">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.DefaultDate

**DefaultDate** As `Xojo.Core.Date</api/deprecated/xojo.core.date>`

The default date to display when DatePickerMode = Date or DateAndTime. Contains the selected date. By default, the current date and/or time is displayed (for date and time display modes).

Gets the selected date from the date picker:

``` xojo
Var selectedDate As Xojo.Core.Date
selectedDate = StartDatePicker.DefaultDate
```

<div id="iosdatepicker.enabled">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.Enabled

**Enabled** As `Boolean</api/data_types/boolean>`

Indicates if the DatePicker is enabled or disabled.

Disable a date picker:

``` xojo
StartDatePicker.Enabled = False
```

<div id="iosdatepicker.height">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.Height

**Height** As `Double</api/data_types/double>`

The height of the control.

This property is read-only.

<div id="iosdatepicker.left">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.Left

**Left** As `Double</api/data_types/double>`

The left position of the control.

This property is read-only.

<div id="iosdatepicker.maximumdate">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.MaximumDate

**MaximumDate** As `Xojo.Core.Date</api/deprecated/xojo.core.date>`

The maximum date in the scrolling list. Applicable when Mode is Modes.Date or Modes.DateAndTime.

Dates after the maximum date still appear in the scrolling list, but cannot be selected.

Limit the maximum date to 50 years in the future:

``` xojo
Var futureDate As Xojo.Core.Date
Var interval As New Xojo.Core.DateInterval
interval.Years = 50
futureDate = Xojo.Core.Date.Now + interval
StartDatePicker.MaximumDate = futureDate
```

<div id="iosdatepicker.minimumdate">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.MinimumDate

**MinimumDate** As `Xojo.Core.Date</api/deprecated/xojo.core.date>`

The minimum date in the scrolling list. Applicable when Mode is Modes.Date or Modes.DateAndTime.

Dates before the minimum date still appear in the scrolling list, but cannot be selected.

Limit the minimum date to 100 years in the past:

``` xojo
Var pastDate As Xojo.Core.Date
Var interval As New Xojo.Core.DateInterval
interval.Years = -100
pastDate = Xojo.Core.Date.Now + interval
StartDatePicker.MinimumDate = pastDate 
```

<div id="iosdatepicker.minuteinterval">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.MinuteInterval

**MinuteInterval** As `Integer</api/data_types/integer>`

The minute interval. The default is 1. This is only applicable when Mode is Modes.Time, Modes.DateTime and Modes.CountDownTimer.

The value must be an even divisor of 60: 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30. Invalid values are treated as 1.

Change the minute interval to 15 minutes:

``` xojo
CountdownPicker.MinuteInterval = 15
```

<div id="iosdatepicker.mode">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.Mode

**Mode** As `Modes<iosdatepicker.modes>`

Uses Modes to specify how the DatePicker should appear. Changing between date/time modes and CountdownTimer resets property values to their defaults.

Change the date picker to show dates:

``` xojo
StartDatePicker.Mode = iOSDatePicker.Modes.Date
```

<div id="iosdatepicker.name">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.Name

**Name** As `Text</api/deprecated/text>`

The name of the control. This can only be set in the Inspector. Use the name to refer to the control.

This property is read-only.

<div id="iosdatepicker.parent">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.Parent

**Parent** As `iOSControl</api/deprecated/ioscontrol>`

Indicates the control's parent object, if it has one. If there is no parent, this is Nil.

This property is read-only.

<div id="iosdatepicker.top">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.Top

**Top** As `Double</api/data_types/double>`

The top position of the control.

This property is read-only.

<div id="iosdatepicker.visible">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.Visible

**Visible** As `Boolean</api/data_types/boolean>`

Indicates whether the control is visible.

Make a button invisible:

``` xojo
Button1.Visible = False
```

<div id="iosdatepicker.width">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.Width

**Width** As `Double</api/data_types/double>`

The width of the control.

This property is read-only.

## Method descriptions

<div id="iosdatepicker.addconstraint">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.AddConstraint

**AddConstraint**(constraint As `iOSLayoutConstraint</api/ios/ioslayoutconstraint>`)

Adds a constraint to the control. This constraint is used by child controls that have been added to this control.

<div id="iosdatepicker.addcontrol">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.AddControl

**AddControl**(child As `MobileControl</api/user_interface/mobile/mobilecontrol>`)

Adds a child control to the control.

<div id="iosdatepicker.control">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.Control

**Control**(index As `Integer</api/data_types/integer>`) As `MobileControl</api/user_interface/mobile/mobilecontrol>`

Gets the child control at the specified index.

<div id="iosdatepicker.controlcount">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.ControlCount

**ControlCount** As `Integer</api/data_types/integer>`

The number of child controls in the control.

<div id="iosdatepicker.defaultdate_method">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.DefaultDate

**DefaultDate**(animate As `Boolean</api/data_types/boolean>`, `Assigns</api/language/assigns>` value As `DateTime</api/data_types/datetime>`)

Used to set the default date, showing a scrolling animation to the specified date.

<div id="iosdatepicker.handle">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.Handle

**Handle** As `Ptr</api/data_types/additional_types/ptr>`

The handle is used to get a reference to the control for interfacing directly with the iOS API.

<div id="iosdatepicker.invalidate">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.Invalidate

**Invalidate**

Marks the control so that it will be redrawn during the next event loop.

Call Invalidate to force a Canvas to redraw itself:

``` xojo
Canvas1.Invalidate
```

<div id="iosdatepicker.removeconstraint">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.RemoveConstraint

**RemoveConstraint**(constraint As `iOSLayoutConstraint</api/ios/ioslayoutconstraint>`)

Removes a constraint from the control.

<div id="iosdatepicker.removecontrol">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.RemoveControl

**RemoveControl**(child As `MobileControl</api/user_interface/mobile/mobilecontrol>`)

Removes the control from the control.

<div id="iosdatepicker.settintcolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.SetTintColor

**SetTintColor**(value As `Color</api/data_types/color>`)

Changes a control's tint color. This varies by control and for some controls may not do anything. For example, with an `MobileTextField</api/user_interface/mobile/mobiletextfield>` this changes the cursor color.

## Event descriptions

<div id="iosdatepicker.close">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.Close

**Close**

Called when the control is removed from its container, such as a view.

<div id="iosdatepicker.open">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.Open

**Open**

Called after the control is created. This is where you typically put initialization code.

Set label text in Open event:

``` xojo
Me.Text = "Hello"
```

<div id="iosdatepicker.valuechanged">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSDatePicker.ValueChanged

**ValueChanged**

Called when the selection in the DatePicker is changed. Use the DefaultDate property to get the newly selected date value.

## Compatibility

iOS projects on the iOS operating system.

## See also

`MobileControl</api/user_interface/mobile/mobilecontrol>` parent class; `DateTime</api/data_types/datetime>` class
