Hi, I need help.
I need to get the week number of day,
like the
VB Function:
Code:
DATEPART("ww", Now())
I tried this but it does not calculate correctly as when the 1st is on Saterday (week1) & calculates on the 3rd Monday
the below code sees it as still part of week1 & not week 2
Code:
WeekOfYear = Convert.ToString(Math.Ceiling(Convert.ToDouble(ManufactureDateVar.DayOfYear) / 7));
I need to somehow replicate the
VB Function in C# to the correct week number
Please Assist!