I am trying to run the line of code below and I am getting an error: DateTime::Today.AddDays( DayOfWeek::Saturday - DateTime::Today.DayOfWeek ) DateTime::Today.AddDays will return a DateTime value with today's date plus the number of days that is passed as parameter of type double. The problem I am having is that DayOfWeek is an enumration type that should return an int value between 0 for Sunday and 6 for Saturday. However, I was getting "cannot convert parameter 1 from 'System::DayOfWeek' to 'double'" error. I tried static_cast <double> and it didn't work. Any advise?