Use Invoke Code with following code, give inputDate as input Arg, and output as out arg in invoke code activity
Dim dayOfWeek As Integer dayOfWeek= CInt(DateTime.Today.DayOfWeek) Dim startOfWeek As String startOfWeek = DateTime.Today.AddDays(-1*dayOfWeek).ToString(“MM/dd/yyyy”) Dim days As Integer = CInt(DateDiff(DateInterval.Day,CDate(startOfWeek),CDate(inputDate))) If(days>6) Then
output = “Next Week” Else If(days>=0 And days<7) Then
output = “Current Week” Else
output = “Previous Week” End If