Autor Beitrag
Thu#
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 19



BeitragVerfasst: Di 20.10.09 14:59 
Hallo,

ich möchte gerne den aktuellen wochentag (also dienstag im heutigen fall) als string zurückbekommen.

Vielen dank !
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Di 20.10.09 15:05 
DateTime.Now.DayOfWeek sollte das sein, was Du suchst :-)

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Thu# Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 19



BeitragVerfasst: Di 20.10.09 15:27 
gibts sunday zurück : /
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Di 20.10.09 16:19 
Nö, tut's nicht. :nixweiss:

Für bessere Hilfe musst Du Dir dann schon die Mühe machen, ein paar mehr Informationen über Deinen Quelltext rauszurücken ;-)

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Thu# Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 19



BeitragVerfasst: Di 20.10.09 17:03 
;D

Also:

i.imagehost.org/0148/1_10.png

mhh, füg ich jetzt noch label1.Text=tag;
ein und step eins weiter funktioniert es : /

danke dir x)


Zuletzt bearbeitet von Thu# am Di 20.10.09 17:06, insgesamt 1-mal bearbeitet
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Di 20.10.09 17:05 
Was Du bei Deinem Screenshot siehst, ist der initiale Wert der Variable (also der Defaultwert des entsprechenden Typs), weil die Zuweisung noch nicht ausgeführt wurde. Und der Defaultwert ist "Sunday".

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Thu# Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 19



BeitragVerfasst: Di 20.10.09 17:10 
aaachsooo.

vielen dank