How we can find the run time and find if it is AM or PM

I have to run 2 Bots in a same day.
The user would like for the automations to run at 4am and have “AM” added to the end of the file name. He would like the 2nd automation to run at 2pm and have “PM” added to the end of the file name.
How it can be done, Any Suggestions??

Hello,

Concatenate the following expression with the file name:
DateTime.Now.ToString(“tt”)

Thanks,
Athira

What is “tt”??
And I need to get the time from running Bot from orchestrator

Hello,
This returns if the time is “AM” or “PM”. You can try it out.

Thanks,
Athira

oh ok
Thanks!!
I will try it out and will let you know.

1 Like

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