Advertisement
rikokurniawan

FungsiDateUtils_Kemarein_HariIni_Besok

Jun 15th, 2015
753
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.64 KB | None | 0 0
  1. unit UMain;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  7.   Dialogs, DateUtils, StdCtrls;
  8.  
  9. type
  10.   TForm1 = class(TForm)
  11.     Edit1: TEdit;
  12.     Edit2: TEdit;
  13.     Edit3: TEdit;
  14.     Label1: TLabel;
  15.     procedure FormCreate(Sender: TObject);
  16.   private
  17.     { Private declarations }
  18.   public
  19.     { Public declarations }
  20.   end;
  21.  
  22. var
  23.   Form1: TForm1;
  24.  
  25. implementation
  26.  
  27. {$R *.dfm}
  28.  
  29. procedure TForm1.FormCreate(Sender: TObject);
  30. begin
  31.   Edit1.Text:=DateToStr(Today);     // Hari ini
  32.   Edit2.Text:=DateToStr(Yesterday); // Kemarin
  33.   Edit3.Text:=DateToStr(Tomorrow);  // Besok
  34. end;
  35.  
  36. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement