Substration of dates

hi ,
today date is 10/07/2020 and i need to get last 2nd date:
ex: today date - 10/07/2020
target - 2
result : 1)today date - 2 days = 8/07/2020
2) today date - 3 days= 7/07/2020
please help me for this output


You can try as below

  1. DateTime.Now.AddDays(-2).ToString(“dd/MM/yyyy”)
  2. DateTime.Now.AddDays(-3).ToString(“dd/MM/yyyy”)

Mark as solution if this helps


1 Like

hi @saneeth_kandukuri

Try this

Mark as solution and like it if this helps you :slight_smile:

Happy Automation :raised_hands:

Best Regards
Er Pratik Wavhal :robot::man_technologist:t4: :computer:

1 Like

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