unit fdlgfecha;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Mask;

type
  Tdlgfecha = class(TForm)
    Button1: TButton;
    lfecha: TMaskEdit;
    procedure FormShow(Sender: TObject);
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  dlgfecha: Tdlgfecha;

implementation

{$R *.dfm}

procedure Tdlgfecha.Button1Click(Sender: TObject);
begin
   close();
end;

procedure Tdlgfecha.FormShow(Sender: TObject);
begin
    lfecha.Text:=datetostr(date());
    lfecha.SetFocus;
end;

end.
