How do I get the first day and the last day of the current year in c#
This?
int year = DateTime.Now.Year; DateTime firstDay = new DateTime(year , 1, 1); DateTime lastDay = new DateTime(year , 12, 31);
1.4m articles
1.4m replys
5 comments
57.0k users