how to find after 3 weeks of Sunday date from today date
DateTime.Now.AddDays(7 - CInt(DayOfWeek)+28)
@Garyy
Hi,
DaysuntilnextSunday is int and except all datatypes are system.Datetime.
Assign: currentDate = DateTime.Now
Assign: daysUntilNextSunday = (7 - CInt(currentDate.DayOfWeek)) Mod 7
Assign: threeWeeksLaterDate = currentDate.AddDays(21)
Assign: resultDate = threeWeeksLaterDate.AddDays(daysUntilNextSunday)
Thank you
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.