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);
2.1m questions
2.1m answers
60 comments
57.0k users