Autor Beitrag
elduchte
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 199

Win 2000, Win XP
Delphi 7
BeitragVerfasst: So 16.01.05 12:53 
Hi,
ich benutzte die Komponente TMonthCalendar und möchte auf ein markiertes (nicht das aktuelle) Datum zugreifen können, bzw Teile (Monat) in einer Edit-Komponente darstellen können.

Oder geht das nur mit dem DateTimePicker ? Kann ich den auch immer "aufgeklappt" anzeigen lassen, wie den MonthCalendar?

Danke
Andi
elduchte Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 199

Win 2000, Win XP
Delphi 7
BeitragVerfasst: So 16.01.05 18:00 
Hallo,
ich habe es jetzt geschafft, das markierte Datum im TMonth Calendar im Format tt.mm.yyyy mir anzeigen zu lassen.

Jetzt möchte ich nur noch den Monat herausfiltern, dabei aber aus der zB 01 eine 1 machen, allerdings muss die 11 eine 11 bleiben....

Ich probiere schon eine halbe Ewigkeit, aber irgendwie bekomme ich es nicht hin.

Wahrscheinlich ist es total simpel, kann mir jemand mal bitte helfen?

Danke
Andi
tomtom62
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 278

WIN 2000, XP prof
D5 prof.
BeitragVerfasst: So 16.01.05 18:58 
Du könntest es mit strtoDate in ein TDateTime umwandeln und dann mittels Getdate (?) den Monat als word bekommen.

Ich hoffe, es heisst getdate, habe gerade kein Delphi da. Es ist eine Funktion, die aus einem TDatetime je ein Word tag,monat, jahr machen kann..
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: So 16.01.05 19:03 
tomtom62 hat folgendes geschrieben:

Ich hoffe, es heisst getdate, habe gerade kein Delphi da. Es ist eine Funktion, die aus einem TDatetime je ein Word tag,monat, jahr machen kann..

decodedate heißt es ;)

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
elduchte Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 199

Win 2000, Win XP
Delphi 7
BeitragVerfasst: So 16.01.05 19:20 
Ihr seid SPITZE.

Vielen Dank
Andi
Roy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 184

Windows7 Ultimate
Delphi 2007, NET, Embarcadero
BeitragVerfasst: Fr 16.02.07 14:21 
Hallo zusammen,
also wie nun. Hier habt ein Edit und einen Timer genommen, dem Timer die Prozedur gesagt er möchte aus dem Calendar nur den Monat rauslesen!? Ist das richtig und wenn ja wie kann ich mir den Monat als Text (Februar) anzeigen lassen???

Danke