I am using WEB API and got a thing that bothers me for some time. I've got the following linq query:
I've got this query returning a date. What I want is to convert this date from YYYY - MM - DD to Week... which week of the year does match the date.
var currCulture = CultureInfo.CurrentCulture;
var weekNo = currCulture.Calendar.GetWeekOfYear(
query,
currCulture.DateTimeFormat.CalendarWeekRule,
currCulture.DateTimeFormat.FirstDayOfWeek);
I know it is wrong, but I can't seem to find a way to do the trick...