How to select start & end date from calender?

Hi Team,

Right now i am using 2 ‘type into’ activity for start and end date field but when bot is entering start date then i am getting error “Start and End date are required” and even after entering end date still error is showing. Due to error i am unable to click on submit button.
How to select dates from calendar?
Please help me to resolve this issue.

Hi @Smitesh_Aher2

Could you share some pictures, how the Ui look like…

Thanks for your response @mkankatala

Just now i found the issue why error is showing.
Bot entering start date as 09/09/2022 & end date as 01/07/2024 00:00:00

Error is occurring because of highlighted part… How we can remove it? which expression should i use for to remove highlighted part.

Okay @Smitesh_Aher2

- Assign -> EndDate = "01/07/2024 00:00:00"
- Assign -> EndDate = (CDate(EndDate)).ToString("MM/dd/yyyy")

Hope it helps!!

1 Like

@Smitesh_Aher2,

If end date is DateTime type use this - dtmEndDate.ToString("dd/MM/yyyy")
If your date is string use this - strEndDate.Split(" ")(0)

Thanks,
Ashok :slight_smile:

Thanks @mkankatala & @ashokkarale Both solutions are worked.

2 Likes

It’s my pleasure… @Smitesh_Aher2

Happy Automation!!

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