Single date range selection

Hi,
In my one of website i’m having the following type of date range selection and it’s in read only.
I have attached the same date picker used website example. The only difference is my date picker is in red only, example sites have editable that’s the different


How to select the date’s dynamically on this
Example websites URL: https://www.daterangepicker.com/
From the above websites i have use single date picker
Thanks

HI @vivek_sivam

have you tried using type into activity

Thanks
Ashwin S

Hi @AshwinS2
Thanks for your response,
Yes i have tried like “Date.Now.AddDays(-1).toString(“yyyy/MM/dd”)”
It won’t work.
Normally my date range looks like this image

@vivek_sivam

Try this.

   Now.AddDays(-1).toString(“dd/MMM/yyyy”)”

Hi @lakshman
Thanks for your response. I have tried above one it won’t work
Can you please help me

1 Like

Hi @vivek_sivam

Add Set web attribute activity to change the date
Try it like the below image
image

Hi @aanandsanraj
Thanks for your response. I have tried the above one it’s not working. I have attached my flow screenshot can you please help me.I’m struggling long time on this
image

@vivek_sivam

It is working fine on the website which you mentioned https://www.daterangepicker.com/

Can you share the screenshot of inspect element code from the browser (right-click on the from date and choose inspect element). Also let me know which browser are you using?

Hi @aanandsanraj
The only different from that website(https://www.daterangepicker.com/) date picker and my site date picker is
My site that date field is read only
Example site it’s in editable mode
I have attached my element please let me know anything i need to do
I’m using chrome browser
Thanks

Hi Guys,
Can some one please help me on my above queries.

so you need to use click on the field wait for calendar to open and again click the date you need…

@vivek_sivam

I couldn’t see the code in your screenshot please take it as below

Hi @bcorrea
We can use click activity. But i want to select date dynamically. In this case how to i use select
Could you please let me know
Thanks

Hi @aanandsanraj
I have attached my code screen shot.


Thanks

@vivek_sivam

Try the attached xaml I hope it will work
ClickDate.xaml (12.1 KB)

1 Like

Hi @aanandsanraj
Thank you very much for your help. Can you please let me know how to i add this flow in to my flow. And also please tell me the click activity for your flow


image

@vivek_sivam

Find the image below
remove your type into activity and copy paste everything and just assign your date into “dt” = Now.AddDays(-2).ToString(“MMM/dd/yyyy”)

1 Like

Hi @aanandsanraj
Thanks. I have use your flow when i try to select month,year and date, i’m getting below error.
image
And also i can’t able to assign variable type for dtArr string
Please let me know.

@vivek_sivam

Please share your xaml file

Hi @aanandsanraj
ClickDate.xaml (20.6 KB)