Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
/
DecodeDate
DecodeDate
Juli 13, 2016
Parameter
(Date : TDateTime; var Year, Month, Day : Word);
Beschreibung
Die Funktion gibt für ein bestimmtes Datum den Wochentag zurück DecodeDate zerlegt den im Parameter Date übergebenen Wert in die Werte Year, Month und Day. Enthält der TDateTime-Wert ein Jahr kleiner null (v. Chr.), werden die var-Parameter auf null gesetzt.
Beispiel
year := 0;
month := 0;
day := 0;
DecodeDate(Now, year, month, day); {year = 2016 month = 7 day = 6}
var
year : Integer;
month : Integer;
day : Integer;
begin
//...
DecodeDate(Now, year, month, day); {year = 2016 month = 7 day = 6}
//...
end;
, multiple selections available, Use left or right arrow keys to navigate selected items