Autor Beitrag
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 30.06.03 19:59 
Hallo

Wie kann ich die Differenz zweier Daten in Tagen und in Beachtung von Schaltjahren, kurzen Monaten usw. berechnen?
CenBells
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1547

Win 7
Delphi XE5 Pro
BeitragVerfasst: Mo 30.06.03 20:11 
hallo,

du holst dir mit filedatetime das Erstellungsdatum beider dateien und berechnest dann mit dem normalen DateTime-System die Datumsunterschiede

Gruß
Ken
Moritz M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 30.06.03 20:14 
hehe, ich meine nicht Dateien sonderen Daten (Datums :lol: )
Alles was ich bisjetzt versucht habe ging nicht richtig.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 30.06.03 20:46 
Was hast du denn bisher probiert?
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 30.06.03 20:47 
Nachtrag:
In der Delphi Hilfe schon das gefunden: DaysBetween?
Zitat:

Returns the number of whole days between two specified TDateTime values.
CenBells
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1547

Win 7
Delphi XE5 Pro
BeitragVerfasst: Mo 30.06.03 21:35 
@Onz, da hab ich mich wohl verlesen... *G*

Naja, Luckies hinweis ist recht brauchbar :wink:

Gruß
Ken
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Di 01.07.03 00:02 
Pseudocode:

ausblenden Quelltext
1:
Tag1 - Tag2 = Differenz					


wenn ich mich nicht vergallopiere :lol:

schwierig wird es allerdings das ganze in Tag.Monat.Jahr umzurechnen

_________________
Gruß
Hansa