Skip to main content
Solved

Cutom Datetime


I have a problem with creating dates, how can today's date come out on the previous date and can also today come out on today's date?

Example:
20240513 to 20240512
20240513 still on 20240513

thanks

 

Best answer by jon.stueveapeople

refer to this help document for Datetime formats:
https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/commands/cloud-date-time-formats.html

If you want to add a date, first assign the date to a DateTime variable, then use the DateTime:Add action to add or subtract from the varibale the DateTime:toString to output in the desired format.

View original
Did this topic help answer your question?

2 replies

jon.stueveapeople
Automation Anywhere Team
Forum|alt.badge.img+7

refer to this help document for Datetime formats:
https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/commands/cloud-date-time-formats.html

If you want to add a date, first assign the date to a DateTime variable, then use the DateTime:Add action to add or subtract from the varibale the DateTime:toString to output in the desired format.


jon.stueveapeople
Automation Anywhere Team
Forum|alt.badge.img+7

Also, remember that the $CurrentTime$ is the time of the runner, so it might be a different date/time than your system.

your code looks correct, but the devil is in the details of the Action properties


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings