Source code to get the first day and the last day of the current month for the given year:
First Day:
DateTime firstDayOfSelectedMonth =
new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
Last Day:
DateTime lastDayOfSelectedMonth =
new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).AddMonths(1).AddDays(-1);
Get FirstDay and LastDay of the month in c#.net
Posted by Techie Cocktail | 7:07 PM | C-Sharp | 0 comments »
Subscribe to:
Post Comments (Atom)
0 comments
Post a Comment