Assign end of this month + current Time into the textbox on the website

Hi Everyone.

I have an difficult issue when want to assign the End of this month + current time into the textbox on the IE textbox as below picture.

If I click to chose it will show interface as below, but I don’t know how to determine to chose end of this month.

How to do that ?

Thanks in advance!


1

DateTime.DaysInMonth(cINT(Date.Now.ToString(“yyyy”)),CINT(Date.Now.ToString(“MM”))).ToString()+date.Now.ToString(“-MMM-yyyy HH:mm:ss”)
Output: 31-Jul-2019 15:21:22

1 Like

Hi @ImPratham45

Thank you so much.

But how to show it into the field which I want to assign on the web ?

If there as an option for type that date then u can simply use type into activity in that the above solution

If u want to click on that date picker then use select item for month and year as:
for month: Date.now.tostring(“MMM”)
for year:Date.now.tostring(“yyyy”)
and for date: DateTime.DaysInMonth(cINT(Date.Now.ToString(“yyyy”)),CINT(Date.Now.ToString(“MM”))).ToString()

Thanks you so much Bro :slight_smile:

Welcome!!!
If u get solution then please mark it as solution…
Happy Automation

1 Like

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