How to give the current date?

I am using

“system.now.date” but it says that now is not a member of system, Please tell me??

Hi @balkishan,

Just search on the forum :slight_smile: !
https://forum.uipath.com/search?q=get%20current%20date

Thanks and best regards,
Susana

2 Likes

DateTime.Now will give the current date.

1 Like

I need only current date not time

DateTime is the namespace. It contains all the date and time methods.

If you want today’s date in a string format -

strDate = DateTime.Now.ToString("dd/MM/yyyy")

Yes I want bro 29-Apr-2019 in this format

1 Like

strDate = DateTime.Now.ToString("dd-MMM-yyyy")

3 Likes

@KarthikByggari Thanks a lot it worked!! :slight_smile:

2 Likes

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