I am migrating a legacy VB6 project into C#.
I want to obtain the equivalent in C# from expression below:
Weekday(Date, vbMonday)
I know there is a function in C#:
int dayOfWeek = (int)DateTime.Today.DayOfWeek;
but how to specify that the first day of the week is Monday and then function DayOfWeek take it into account and return the correct value?
I need to obtain an int value.