How to select Date from control

Dear All,

thank you in advance.
please help to choose the date
previously it will work in the portal for type into activity.
now they changed and type into activity is not working

can i use java script to set the date for the following

@Mohsin_Ali_Mohammed,

Any informative screenshot or logic?

Thanks,
Ashok :slight_smile:

thank you

image

input type=“text” placeholder=“DD-MM-YYYY” class=“react-datepicker-ignore-onclickoutside” value=“27-03-2024” UiPath_custom_id="73

@Mohsin_Ali_Mohammed,

Are you able to copy paste date value in the text box manually?

@Mohsin_Ali_Mohammed,

Try this.

In short,

  1. Check the selector of any date using Ui Explorer
  2. Use variable in Selector of that date selector to create selector for your desired date.
  3. Use Click activity to click on that dynamically created Selector element.

Thanks,
Ashok :slight_smile:

i can’t copy and paste

No worries, try above solution.

shall i use type into activity??

No, you will have to use Click on the date text box to open the calendar popup and another Click to click on the dynamic date selector you will prepare.

Thanks,
Ashok :slight_smile:

we would recommend to check more in detail and what is blocking you

From the selector we do see a input field of type text

Had you tried the set Text activity already? Also you can check if type into activity and the enableIfdisabled flag can help

thank you will try and let u know

1 Like

i already set text activity no use.

my requirement is to enter manufacture date and expiry date.
expiry date can be for example 27-03-2035’ like that

bro no success.

i need to enter manufacture date and expiry date of the product.
expiry date may be 27-03-2035…

is any way to set date with javascript?

just share with us the detailed element structure details form the text field / date picker
we can inspect with UiExplorer / Browser F12 Web Tools

please see the following

1)div class=“react-datepicker__input-container”></div

2)div class=“react-datepicker-wrapper”>div class=“react-datepicker__input-container”>input type=“text” placeholder=“dd-mm-yyyy” class=“” value=“22-03-2024”></div</div

Prototyping on a react datepicker demo
grafik

was working:
grafik

i am using classic version of UiPath. will it work in classic?

i gone to the website we can paste the date there.
here in my case I can’t paste the date in textbox

Yes it worked also with classic

it will work if we able to paste the DATE in the textbox of the datepickcontrol