# Date picker selection

**URL:** <https://forum.uipath.com/t/date-picker-selection/175601>\
**Category:** Help\
**Tags:** selector, question, uiautomation, activities\
**Created:** [2019年十二月9日 10:34 UTC](https://forum.uipath.com/t/date-picker-selection/175601 "2019-12-09T10:34:21Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivek\_sivam](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vivek_sivam/32/106612_2.png) [@vivek\_sivam](https://forum.uipath.com/u/vivek_sivam)\
**Post date:** [2019年十二月9日 10:34 UTC](https://forum.uipath.com/t/date-picker-selection/175601/1 "2019-12-09T10:34:21Z")

</div>

Hi Guys,  
One of my website i’m using following date picker. And it’s in read only mode. I can’t able to type the dates manually. The only option is to select the date using date picker. The problem is i can’t able to select the date’s dynamically .I have used type into activity for to choose date.  
I want to select the date’s dynamically.  
Ex.  
------Day 1----------  
From date: 07-12-2019  
To date: 08-12-2019  
------Day 1----------  
From date: 08-12-2019  
To date: 09-12-2019  
My type into activity’s i have used  
From date: Date.Now.AddDays(-2).toString(“dd-MM-yyyy”)  
To date: Date.Now.toString(“dd-MM-yyyy”)  
 ![image](https://global.discourse-cdn.com/uipath/original/3X/b/9/b9129a95893f5c9f60db180e74c1697d86872ef2.png)  
Can any one let me know what should i do.  
Thanks

---

<div class="post-metadata">

**Author:** ![Palaniyappan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/palaniyappan/32/524095_2.png) [@Palaniyappan](https://forum.uipath.com/u/Palaniyappan)\
**Post date:** [2019年十二月9日 10:37 UTC](https://forum.uipath.com/t/date-picker-selection/175601/2 "2019-12-09T10:37:49Z")

</div>

> [@vivek\_sivam](#):
>
> From date: Date.Now.AddDays(-2).toString(“dd-MM-yyyy”)  
> To date: Date.Now.toString(“dd-MM-yyyy”)

Hi  
is this getting typed in to the field as you said its not taking in the value when typed  
@vivek_sivam

---

<div class="post-metadata">

**Author:** ![Srini84](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/srini84/32/464032_2.png) [@Srini84](https://forum.uipath.com/u/Srini84)\
**Post date:** [2019年十二月9日 10:39 UTC](https://forum.uipath.com/t/date-picker-selection/175601/3 "2019-12-09T10:39:12Z")

</div>

Check with typeinto activity and enable the options like send window message and try

or

you need to capture the selector and try to make dynamic selector according to the date generated

Thanks

---

<div class="post-metadata">

**Author:** ![vivek\_sivam](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vivek_sivam/32/106612_2.png) [@vivek\_sivam](https://forum.uipath.com/u/vivek_sivam)\
**Post date:** [2019年十二月9日 10:41 UTC](https://forum.uipath.com/t/date-picker-selection/175601/4 "2019-12-09T10:41:54Z")

</div>

Hi @Palaniyappan

> [@Palaniyappan](#):
>
> is this getting typed in to the field as you said its not taking in the value when typed

No, That’s the problem

---

<div class="post-metadata">

**Author:** ![vivek\_sivam](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vivek_sivam/32/106612_2.png) [@vivek\_sivam](https://forum.uipath.com/u/vivek_sivam)\
**Post date:** [2019年十二月9日 10:43 UTC](https://forum.uipath.com/t/date-picker-selection/175601/5 "2019-12-09T10:43:35Z")

</div>

Hi @Srini84  
I have enable the window message still it’s not working.

> [@Srini84](#):
>
> you need to capture the selector and try to make dynamic selector according to the date generated

Can you please give some examples or steps.  
Thanks

---

<div class="post-metadata">

**Author:** ![Srini84](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/srini84/32/464032_2.png) [@Srini84](https://forum.uipath.com/u/Srini84)\
**Post date:** [2019年十二月9日 10:45 UTC](https://forum.uipath.com/t/date-picker-selection/175601/6 "2019-12-09T10:45:23Z")

</div>

ok, then can you capture the selector?

Place a click activity and click on 9th date

Place another click activity and click on 10th date

capture both selectors and try to make a dynamic selector

Hope this helps

Thanks

---

<div class="post-metadata">

**Author:** ![vivek\_sivam](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vivek_sivam/32/106612_2.png) [@vivek\_sivam](https://forum.uipath.com/u/vivek_sivam)\
**Post date:** [2019年十二月9日 11:07 UTC](https://forum.uipath.com/t/date-picker-selection/175601/7 "2019-12-09T11:07:35Z")

</div>

Hi @Srini84  
When i use click activity this month is ok. It goes to next month that activity place has been changed right. that time how it’s work?  
I have use click activity for select from date i’m getting below things.  
How to i changed dynamically.

 ![image](https://global.discourse-cdn.com/uipath/original/3X/a/1/a1dcebd8bed9facf51b6649857a1936accc05259.png)

---

<div class="post-metadata">

**Author:** ![Srini84](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/srini84/32/464032_2.png) [@Srini84](https://forum.uipath.com/u/Srini84)\
**Post date:** [2019年十二月9日 11:14 UTC](https://forum.uipath.com/t/date-picker-selection/175601/8 "2019-12-09T11:14:24Z")

</div>

Yes, It will change for the next month.

but we need to get the selectors for the month, year, and date, so that we can check the selector and make a dynamic selector

That is the only way i think

Thanks

---

<div class="post-metadata">

**Author:** ![lukasziebold](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/lukasziebold/32/42854_2.png) [@lukasziebold](https://forum.uipath.com/u/lukasziebold)\
**Post date:** [2019年十二月9日 11:20 UTC](https://forum.uipath.com/t/date-picker-selection/175601/9 "2019-12-09T11:20:04Z")

</div>

Sometimes these date picker fields only accept the correct format and you can paste a date with the correct format in there.

You could try defining the date as “dd/MMM/yyyy”, then use a Set to Clipboard activity and use Send Hotkey activity with Ctrl + V to paste the date in.

---

<div class="post-metadata">

**Author:** ![vivek\_sivam](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vivek_sivam/32/106612_2.png) [@vivek\_sivam](https://forum.uipath.com/u/vivek_sivam)\
**Post date:** [2019年十二月9日 11:21 UTC](https://forum.uipath.com/t/date-picker-selection/175601/10 "2019-12-09T11:21:18Z")

</div>

> [@Srini84](#):
>
> Yes, It will change for the next month

That time how to we select date’s dynamically.

> [@Srini84](#):
>
> but we need to get the selectors for the month, year, and date, so that we can check the selector and make a dynamic selector

How to we get?

---

<div class="post-metadata">

**Author:** ![Palaniyappan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/palaniyappan/32/524095_2.png) [@Palaniyappan](https://forum.uipath.com/u/Palaniyappan)\
**Post date:** [2019年十二月9日 11:22 UTC](https://forum.uipath.com/t/date-picker-selection/175601/11 "2019-12-09T11:22:13Z")

</div>

yah did we try with copy paste method as @lukasziebold suggested  
like that field if takes in such way of input then we can pass the input date string format we want as input to SET TO CLIPBOARD and use SEND HOT KEY ACTIVITY with key as ctrl+v so that it will paste that to the field  
Cheers @vivek_sivam

---

<div class="post-metadata">

**Author:** ![Srini84](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/srini84/32/464032_2.png) [@Srini84](https://forum.uipath.com/u/Srini84)\
**Post date:** [2019年十二月9日 11:23 UTC](https://forum.uipath.com/t/date-picker-selection/175601/12 "2019-12-09T11:23:46Z")

</div>

ok, as @lukasziebold said, try to assign “09/Dec/2019” in typeinto activity and try enabling the different options available and test, It it solves that would be great

Test once

Thanks

---

<div class="post-metadata">

**Author:** ![ImPratham45](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/impratham45/32/161516_2.png) [@ImPratham45](https://forum.uipath.com/u/ImPratham45)\
**Post date:** [2019年十二月9日 11:33 UTC](https://forum.uipath.com/t/date-picker-selection/175601/13 "2019-12-09T11:33:09Z")

</div>

If Type into is not working here then  
Use Click activity or Select item for selecting Month and year  
Then for date selection if you see the selectors there are table row  
so for less than 22 date chose row from 3 if not exist then increment that value say 4 if exist then click else again increment

---

<div class="post-metadata">

**Author:** ![vivek\_sivam](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vivek_sivam/32/106612_2.png) [@vivek\_sivam](https://forum.uipath.com/u/vivek_sivam)\
**Post date:** [2019年十二月9日 11:50 UTC](https://forum.uipath.com/t/date-picker-selection/175601/14 "2019-12-09T11:50:16Z")

</div>

@lukasziebold Can you please give some steps how to i use that one.  
@Palaniyappan how to use those things,i’m confused and it’s possible to create a flow  
Thanks.

---

<div class="post-metadata">

**Author:** ![lukasziebold](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/lukasziebold/32/42854_2.png) [@lukasziebold](https://forum.uipath.com/u/lukasziebold)\
**Post date:** [2019年十二月9日 12:17 UTC](https://forum.uipath.com/t/date-picker-selection/175601/15 "2019-12-09T12:17:53Z")

</div>

Hi, I thought I gave the steps, but here is how it could work:

![grafik](https://global.discourse-cdn.com/uipath/original/3X/d/a/da2bff40fb34f88b23358388c32faad97175c5bb.png)

Cheers, Lukas

---

<div class="post-metadata">

**Author:** ![AshwinS2](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ashwins2/32/176686_2.png) [@AshwinS2](https://forum.uipath.com/u/AshwinS2)\
**Post date:** [2019年十二月9日 12:31 UTC](https://forum.uipath.com/t/date-picker-selection/175601/16 "2019-12-09T12:31:14Z")

</div>

Hi @vivek_sivam

Try to use set web attribute activity

> [@Looking for a way to edit a web attribute](https://forum.uipath.com/t/looking-for-a-way-to-edit-a-web-attribute/105563/4):
>
> Hi as I told before, attribute is value. I have tested in the below file and it works, try it. [Main.xaml](https://global.discourse-cdn.com/uipath/original/3X/b/9/b994ab632fc944299be6b59094ac3e44300c7108.xaml) (6.3 KB) HTML Attribute is value=“1” So in attribute you have to put value

Thanks  
Ashwin S

---

<div class="post-metadata">

**Author:** ![vivek\_sivam](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vivek_sivam/32/106612_2.png) [@vivek\_sivam](https://forum.uipath.com/u/vivek_sivam)\
**Post date:** [2019年十二月10日 06:54 UTC](https://forum.uipath.com/t/date-picker-selection/175601/17 "2019-12-10T06:54:23Z")

</div>

Hi @lukasziebold  
Where should i need to add this flow. Before the date selection or after the selection how to we integrate ? Once i add the above flow it will works for the date selection based on the current date to past two dates.  
Thanks

---

<div class="post-metadata">

**Author:** ![vivek\_sivam](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vivek_sivam/32/106612_2.png) [@vivek\_sivam](https://forum.uipath.com/u/vivek_sivam)\
**Post date:** [2019年十二月10日 10:21 UTC](https://forum.uipath.com/t/date-picker-selection/175601/18 "2019-12-10T10:21:25Z")

</div>

Hi Guys  
Help me on above query please  
Thanks

---

<div class="post-metadata">

**Author:** ![Krutika\_Kotkar](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/krutika_kotkar/32/189972_2.png) [@Krutika\_Kotkar](https://forum.uipath.com/u/Krutika_Kotkar)\
**Post date:** [2024年二月22日 16:50 UTC](https://forum.uipath.com/t/date-picker-selection/175601/19 "2024-02-22T16:50:15Z")

</div>

You got any solution to this?
