How to get datetime

Hi!

I am triying to get the hour, minute and second when the Robot do something (it write into a txt). For that I use system.datetime.now.ToString(“HHmmss”) as a GenericValue for a variable.

I realice that the datetime value which it is reported is not the properly. I mean, this values is the moment when the process start, and no the moment where the robot pass throw the activity.

Thanks in advance!

@ismael_ayala

get a string variable and assign as below

Hope this helps

Thanks

2 Likes

If you use an Assign activity for a variable, then this will be recorded at that time, instead, dont use a variable, just use system.datetime.now.ToString("HHmmss") when you need that text…

1 Like

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