Click here to Skip to main content
15,887,434 members
Home / Discussions / C#
   

C#

 
AnswerRe: The dates of the next week and the previous week days Pin
OriginalGriff4-Apr-14 22:16
mveOriginalGriff4-Apr-14 22:16 
GeneralRe: The dates of the next week and the previous week days Pin
ismail204-Apr-14 23:29
ismail204-Apr-14 23:29 
GeneralRe: The dates of the next week and the previous week days Pin
OriginalGriff4-Apr-14 23:35
mveOriginalGriff4-Apr-14 23:35 
GeneralRe: The dates of the next week and the previous week days Pin
ismail204-Apr-14 23:48
ismail204-Apr-14 23:48 
GeneralRe: The dates of the next week and the previous week days Pin
OriginalGriff5-Apr-14 0:27
mveOriginalGriff5-Apr-14 0:27 
GeneralRe: The dates of the next week and the previous week days Pin
ismail205-Apr-14 0:55
ismail205-Apr-14 0:55 
GeneralRe: The dates of the next week and the previous week days Pin
OriginalGriff5-Apr-14 3:34
mveOriginalGriff5-Apr-14 3:34 
GeneralRe: The dates of the next week and the previous week days Pin
ismail205-Apr-14 4:27
ismail205-Apr-14 4:27 
yes, I can see it with code dates next week, how can I make the loop, but how,

DateTime dt = DateTime.Now;

int a = (int)dt.DayOfWeek;

if (a == 0) a = 14;

DateTime pazartesigun = dt.AddDays(8 - a);
DateTime saligun = dt.AddDays(9 - a);
DateTime carsambagun = dt.AddDays(10- a);
DateTime persembegun = dt.AddDays(11- a);
DateTime cumagun = dt.AddDays(12 - a);
DateTime cumartesigun = dt.AddDays(13 - a);
DateTime songun = dt.AddDays(14-a);

pazartesilbl.Text = pazartesigun.ToShortDateString();
salilbl.Text = saligun.ToShortDateString();
carsambalbl.Text = carsambagun.ToShortDateString();
persembelbl.Text = persembegun.ToShortDateString();
cumalbl.Text = cumagun.ToShortDateString();
cumartesilbl.Text = cumartesigun.ToShortDateString();
pazarlbl.Text = songun.ToShortDateString();
GeneralRe: The dates of the next week and the previous week days Pin
OriginalGriff5-Apr-14 4:35
mveOriginalGriff5-Apr-14 4:35 
GeneralRe: The dates of the next week and the previous week days Pin
ismail205-Apr-14 4:43
ismail205-Apr-14 4:43 
GeneralRe: The dates of the next week and the previous week days Pin
OriginalGriff5-Apr-14 4:49
mveOriginalGriff5-Apr-14 4:49 
GeneralRe: The dates of the next week and the previous week days Pin
ismail205-Apr-14 4:52
ismail205-Apr-14 4:52 
GeneralRe: The dates of the next week and the previous week days Pin
OriginalGriff5-Apr-14 5:13
mveOriginalGriff5-Apr-14 5:13 
GeneralRe: The dates of the next week and the previous week days Pin
ismail205-Apr-14 5:27
ismail205-Apr-14 5:27 
GeneralRe: The dates of the next week and the previous week days Pin
OriginalGriff5-Apr-14 5:42
mveOriginalGriff5-Apr-14 5:42 
GeneralRe: The dates of the next week and the previous week days Pin
ismail205-Apr-14 5:47
ismail205-Apr-14 5:47 
GeneralRe: The dates of the next week and the previous week days Pin
OriginalGriff5-Apr-14 6:12
mveOriginalGriff5-Apr-14 6:12 
GeneralRe: The dates of the next week and the previous week days Pin
ismail205-Apr-14 6:12
ismail205-Apr-14 6:12 
QuestionAnonymous or static or lambda methods?? Pin
Sea_Sharp4-Apr-14 8:56
Sea_Sharp4-Apr-14 8:56 
AnswerRe: Anonymous or static or lambda methods?? Pin
Mycroft Holmes4-Apr-14 14:20
professionalMycroft Holmes4-Apr-14 14:20 
AnswerRe: Anonymous or static or lambda methods?? Pin
OriginalGriff4-Apr-14 20:55
mveOriginalGriff4-Apr-14 20:55 
GeneralRe: Anonymous or static or lambda methods?? Pin
Richard Deeming7-Apr-14 1:57
mveRichard Deeming7-Apr-14 1:57 
GeneralRe: Anonymous or static or lambda methods?? Pin
Sea_Sharp7-Apr-14 2:57
Sea_Sharp7-Apr-14 2:57 
GeneralRe: Anonymous or static or lambda methods?? Pin
OriginalGriff7-Apr-14 5:33
mveOriginalGriff7-Apr-14 5:33 
GeneralRe: Anonymous or static or lambda methods?? Pin
Sea_Sharp7-Apr-14 8:34
Sea_Sharp7-Apr-14 8:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.