Selecting between current date and previous date on a desktop application

Hi. I have an application where there are 2 date radio buttons (current and previous) and depending on my process it is either current date or previous date. How can I choose the correct date depending on which one I need to use?? I was using DateTime.Now.ToString(“MM/dd/yyyy”) but not sure how to implement to this issue. See screenshot.
image

@Drrock

Indicate the element in ui explorer and check each line in the center menu and see if any line contains the property like name which ahs date in it…

If yes then use variable instead of date in the selector and use it…

If not try using anchor base activity…or in modern clicka ctivity…indicate a anchor with date and click on the button…

Hope this helps

Cheers

1 Like

Thank you Anil_G…I will try this!!

1 Like

Hi @Drrock ,

Were you able to Solve the issue ? If so, please do mark the appropriate post as the Solution. If the methods used to solve are not mentioned, do post the method/steps used and mark it as the solution.

This would help to close the post and help others who are facing the same issue.