How to find after 3 weeks of Sunday date from today date do

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

Hi @Garyy

Here is the xaml with your expected output
BlankProcess3.zip (846.6 KB)

Hope it helps!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.