Displaying which month of the year
-
Can anyone explain to me how to display the current month. I have an applicatuion that I want to display the month but I don't want the month's number. I have tried these line of code: Label1.text = System.DateTime.Today.Month.ToString and I have also tried Label1.text = MonthName(3) But the problem with this is that it doesn't update when the month change. I would the my code to refect when the month changes just like it does for the days of the week and year. Can anyone please help me... :confused: Thanks cPod....
-
Can anyone explain to me how to display the current month. I have an applicatuion that I want to display the month but I don't want the month's number. I have tried these line of code: Label1.text = System.DateTime.Today.Month.ToString and I have also tried Label1.text = MonthName(3) But the problem with this is that it doesn't update when the month change. I would the my code to refect when the month changes just like it does for the days of the week and year. Can anyone please help me... :confused: Thanks cPod....
Not sure if I understand you correctly but if Im right you just have to combine your two statements:
Label1.Text = MonthName(DateTime.Today.Month)
-
Not sure if I understand you correctly but if Im right you just have to combine your two statements:
Label1.Text = MonthName(DateTime.Today.Month)