Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unit UMain;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, DateUtils, StdCtrls;
- type
- TForm1 = class(TForm)
- Edit1: TEdit;
- Edit2: TEdit;
- Edit3: TEdit;
- Label1: TLabel;
- procedure FormCreate(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- Form1: TForm1;
- implementation
- {$R *.dfm}
- procedure TForm1.FormCreate(Sender: TObject);
- begin
- Edit1.Text:=DateToStr(Today); // Hari ini
- Edit2.Text:=DateToStr(Yesterday); // Kemarin
- Edit3.Text:=DateToStr(Tomorrow); // Besok
- end;
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement