How to find date dynamically

This is the website
https://futureofworkblog.web.app/challenge2021.html

i am trying to fetch date dynamically but not able to fetch it dynamically because not able to select proper selectors.
need help on urgent basis pls.
image
need in this format - 2002-07-24 which is coming from Transactionitem.
how to achieve it

Hey @RAKESH_KUMAR_Tiwari ,

You can manipulate the date in “MMM dd, yyyy” format and use set text activity instead of picking the date from the calendar.

image
image

Thanks,
Sanjit

1 Like

Hi @RAKESH_KUMAR_Tiwari ,

Alternatively using a Type Into Activity with Simulate Input mode should also work. Check below the Selector of the Type Into Activity that is to be used :

<webctrl aaname='Hire Date' parentid='form_container' tag='LABEL' />
<nav up='1' />
<webctrl tag='INPUT' type='text' class='datepicker' parentclass='datepicker_div' />

image

Let us know if you are still facing issues.

1 Like

Hi,@RAKESH_KUMAR_Tiwari
can you try below one


@RAKESH_KUMAR_Tiwari

Please use set text activity with the following selector

<html app='chrome.exe' title='RPA in Practice 2020 Challange' />
<webctrl tag='INPUT' type='text' class='datepicker' />

Datime.ParseExact(yourdate,"yyyy-MM-dd",system.Globalization.cultureinfo.invariantculture).Tostring("MMM dd, yyyy")

cheers

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