I was checking out the week numbering codes and I have encountered with this answer on SO. I did not get the use of CultureInfo.InvariantCulture.Calendar.GetDayOfWeek
. Is there any reason for not using DayOfWeek
property of DateTime
as time.DayOfWeek
. Am I missing something?
Related code block from the answer mentioned above:
DayOfWeek day = CultureInfo.InvariantCulture.Calendar.GetDayOfWeek(time);