Autor Beitrag
Matthias-K
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 271

Win95, Win98, Win2000, WinXP, Linux
D2, D4 Client/Server, D5 Enterprise, D6 Enterprise, D7 Enterprise, Delphi2005, C/C++ 3.0, C/C ++ 5.0, C/C++ 6.0
BeitragVerfasst: Do 06.01.05 17:30 
hi leutz!

gibt es einen schon fertigen algo, der mit einem übergebenen datum herausfinde, ob das datum zu wochenende zählt? weil das selbst auszurechnen, wäre bissle blöd, denn man müsste ja die länge der monate und dann schaltjahre mit herausfinden!

wenn ihr was kennt, meldet euch bitte!


mfg matthias
Matthias-K Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 271

Win95, Win98, Win2000, WinXP, Linux
D2, D4 Client/Server, D5 Enterprise, D6 Enterprise, D7 Enterprise, Delphi2005, C/C++ 3.0, C/C ++ 5.0, C/C++ 6.0
BeitragVerfasst: Do 06.01.05 17:31 
blöder explorer!
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8549
Erhaltene Danke: 477

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 06.01.05 17:40 
Es gibt da die Funktionen
ausblenden Delphi-Quelltext
1:
2:
DayOfWeek();
DayOfTheWeek();
Zumindest ab Delphi6. Der UNterschied liegt AFAIK nur darin, dass bei dem einen die Woche mit Montag und beim anderen mit Sonntag beginnt. Näheres in der Delphi-Hilfe

_________________
We are, we were and will not be.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Do 06.01.05 17:44 
Wenn DayOfWeek 1 oder 7 ist, haste Wochenende :wink:
Gibts auch schon in D5
lord.paddington
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 76



BeitragVerfasst: Fr 21.09.07 12:25 
was aber ist, wenn immer nur ein Sonntag herauskommt?
Habe aktuell das Problem, dass ADate immer nur eine 1 herauswürfelt.

ADate wird immer von einem Timer aufgerufen...

_________________
pfutsch ist hin und hin ist pfutsch
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Fr 21.09.07 12:31 
:?: :?: :?:

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Fr 21.09.07 14:27 
user profile iconlord.paddington hat folgendes geschrieben:
was aber ist, wenn immer nur ein Sonntag herauskommt?...


Ganz einfach : wegen des wohl streng geheimen Source-Codes sagt die Glaskugel : Variable nicht richtig initialisiert. Da hilft zur Not "showmessage" :mrgreen:

_________________
Gruß
Hansa