TDateDialog Component


Properties Methods Installation Sources Author



TDateDialog is a dialog-VCL for entering or confirming dates. The layout is copied from the Date/Time-properties used by the Windows 95 clock. The component is not in anyway using TCalendar. (C) 1996 Hans Luyten, for copy condition see Author, use at your own risk. Thanks to Borland (http://www.borland.com) for such a great and cool tool as Delphi.

Installation is pretty easy, so is the usage.

Usage:

First you drop the component on your form, maybe alter the properties, and you're ready to go. There are two ways to activate to TDateDialog :

This will return a boolean value which is either true (the user pressed the OK-button) or false (the user pressed the Cancel-button or used Alt-F4 to close the dialog). The entered date can be found in the ResultDate variable, i.e.:

MyDate:=DateDialog1.ResultDate;

The function GetADate(StartDate : TDateTime) will return a TDateTime. If StartDate=0 then the current date will be used rather than zero.

The DateDialog could look like this :