How to check this

hi i want to check if current time is 16:00:00 then Subtract one day from total day difference.

if difference day is 10 then 10-1

@manoj_verma1

- Assign: currentDateTime = DateTime.Now
- Assign: currentTime = currentDateTime.TimeOfDay

- If (currentTime = New TimeSpan(16, 0, 0))
    - Assign: totalDays = totalDays - 1

1 Like