Disply week-number
-
Hello Can you please help me with the code after the user selected the date for the calender,the date will be displayed in the DateText-Box.I want the week number to be displyed automatically in the week-numberTextbox,after the user selected the date in the calender..... You send me this code ,and when I try it doesn't work,please help me,with the code,and if possible can you please explain it to me. In the Calendar1_SelectionChanged event use the following.... System.Globalization.Calendar cal=System.Globalization.CultureInfo.InvariantCulture.Calendar; WeekTxt.Text= (cal.GetWeekOfYear(Calendar1.SelectedDate, System.Globalization.CalendarWeekRule.FirstDay, DayOfWeek.Monday)).ToString(); Thank you. oga m
-
Hello Can you please help me with the code after the user selected the date for the calender,the date will be displayed in the DateText-Box.I want the week number to be displyed automatically in the week-numberTextbox,after the user selected the date in the calender..... You send me this code ,and when I try it doesn't work,please help me,with the code,and if possible can you please explain it to me. In the Calendar1_SelectionChanged event use the following.... System.Globalization.Calendar cal=System.Globalization.CultureInfo.InvariantCulture.Calendar; WeekTxt.Text= (cal.GetWeekOfYear(Calendar1.SelectedDate, System.Globalization.CalendarWeekRule.FirstDay, DayOfWeek.Monday)).ToString(); Thank you. oga m