Select today date from dropdown

Hi,
I would like to select the date of “today” in a dropdown menu
default date

If i try something like that it’s not saving
Date.Today.ToString
01/06/2020 00:00:00
or
Date.Today.ToString(“dd-MM-yyyy”)
01/06/2020

Can anyone please let me know how to proceed

Did you tried with the selector (Click Activity) ?

i have doubt if i tried the click activity, how will the activity behave tomorrow or the day after?

@tharuler

Are you able to enter date manually instead of selecting from Date picker ?

You have to make the selector dynamic. Check which part of selector is changing based on that you have to update the selector.

Regards,
Karthik Byggari

1 Like

yes i did try manually like that Date.Today.ToString ( result : 01/06/2020 00:00:00 ) or Date.Today.ToString(“dd-MM-yyyy”) (result: 01/06/2020 )
but it’s not saving the result, it doesnt like those format

@tharuler

If you select date from Date picker and what format it is showing date ? Is it in below format ?

        06 Jan 20 - 00:00

If yes then try like this:

             Now.Tostring("dd MMM yy - hh:mm")
1 Like

really impressive, I’ve been stuck on this for two hours.
thanks @lakshman, thanks you all

1 Like

@tharuler

Glad to help you. Happy Automation :slight_smile:

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