if we place a Calendar Control in ASP.NET page, its Shows current month and date.Then how can we set that month in to next month?, its possible to set current month to next month, the following c# code that change this month problem.
C# ASP.NET code to Change to set month vale to next month
DateTime nextMonth = DateTime.Now.AddMonths(1);
Calendar1.TodaysDate = nextMonth;
DateTime nextOfNextMonth = DateTime.Now.AddMonths(2);
Calendar2.TodaysDate = nextOfNextMonth;
3 comments:
Fantastic! Many Thanks!
Thanks a lot for this post. It helps me a lot... :)
It is really a great work and the way in which u r sharing the knowledge is excellent.
Thanks for helping me to understand basic concepts. As a beginner in Dot Net programming your post help me a lot.Thanks for your informative article.
Dot Net Training in chennai | Dot Net Training in velachery
Post a Comment