Define next Monday

SVA

Member
Joined
Oct 12, 2006
Messages
16
Programming Experience
3-5
Hello,

How can I define the date of the next coming Monday, starting from today :confused:?

(I have VB 2005)
 
VB.NET:
Dim today As Date = Date.Now
Dim nextmonday As Date = [SIZE=2]today.AddDays(IIf(today.DayOfWeek = 0, 1, 8 - today.DayOfWeek))[/SIZE]
 
Last edited:
Back
Top