[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'EditBtn' (#lcl)

# TDateEdit.OnCustomDate

OnCustomDate - event handler for inserting a custom date.

## Declaration

Source position: editbtn.pas line 646

`published property TDateEdit.OnCustomDate : TCustomDateEvent read FOnCustomDate write FOnCustomDate;`

## Description

OnCustomDate is a TCustomDateEvent property with the event handler signalled to validate or update a string value before it is converted to the TDateTime type. OnCustomDate is signalled (when assigned) when the value in Text is converted to the TDateTime type used in the Date property. It also occurs when a new value is assigned to DirectInput, and when reading the value for the Date property when DirectInput is enabled.

## See also

TDateEdit.Date |  | Contains the TDateTime value for the control.
TDateEdit.DateOrder |  | Controls the display order for Year, Month, and Day parts of the Date value.
TDateEdit.DirectInput |  | Indicates if text can be entered directly into the BaseEditor control.
TDateEdit.Text |  | String with the text or caption for the control.