Seversintabi.com Türkiye'nin En Büyük Forumu Bence Seversin Tabi

Seversintabi.com Türkiye'nin En Büyük Forumu Bence Seversin Tabi (https://seversintabi.com/)
-   C++ VB Delphi Java (https://seversintabi.com/c-vb-delphi-java/)
-   -   Ayin son gününü bulma (https://seversintabi.com/c-vb-delphi-java/26941-ayin-son-gununu-bulma.html)

ceyLin 8 January 2009 14:52

Ayin son gününü bulma
 
Ayin son gününü bulma

Ayin son gününü bulur




function LastDayOfCurrentMonth: TDate;

var

y, m, d: word;

begin

decodedate(now, y, m, d);

m := m + 1;

if m > 12 then

begin

y := y + 1;

m := 1;

end;

result := encodedate(y, m, 1) - 1;

end;



procedure TForm1.Button1Click(Sender: TObject);

begin

ShowMessage(DateToStr(LastDayOfCurrentMonth));

end;


Saat: 01:40

Telif Hakları vBulletin® v3.8.9 Copyright ©2000 - 2024, ve
Jelsoft Enterprises Ltd.'e Aittir.


Search Engine Friendly URLs by vBSEO 3.6.0 PL2