TDateDialog Methods




function Execute : boolean;

Displays the dialog, and returns a boolean after closing the dialog.

Returnvalues:
True the user pressed the OK-button
False the user either pressed the Cancel-button or Alt+F4 (System-menu, Close)


function GetADate( StartDate : TDateTime) : TDateTime;

Displays the dialog, using the Startdate as the initial date. If StartDate is zero then the currentdate will be used. The return date will be either the StartDate (the user pressed the Cancel-button or used Alt+F4 (System-menu, close) or the selected-date (ResultDate). The ResultDate defaults to the current-date, unless a date is selected.