How to get the system time

Hello!
Who can help me?
How to get the system time

1 Like

Hi LiWenChao,

Use System.DateTime.Now to get current system date and time.

System.DateTime.Now.ToShortTimeString

System.DateTime.Now.ToLongTimeString

You can also get time in specified format using System.DateTime.Now.ToString(“hh-mm-ss”).

DateTime class has multiple methods to get Date and Time in specified formats.

Please check the microsoft library for more details.

.NET Framework Class Library -->System -->DateTime

Regards,
Rahamat

19 Likes

Thank you so much

1 Like

Any one can help me in getting " System time zone " through UIPath tool, Is that is possible?

2 Likes

Hi @pulapathiswathi,

Please check this link.

Thanks,
Saranya K R

3 Likes

Hi pls follow this …
It talks about getting current time

1 Like