Skip to main content
LoganPrice
Most Valuable Pathfinder
Most Valuable Pathfinder
August 4, 2022
Question

Convert Datetime to String Inline

  • August 4, 2022
  • 4 replies
  • 1192 views

Is there a way to convert a Datetime variable to string-type in line?

 

For instance, lets say I assign the current date to "Today-Date" variable.

 

Can I then type $Today-Date:ToString$ or something like that in a message box action so that the date is converted to a string inline?

    4 replies

    Automation Anywhere Team
    August 5, 2022
    LoganPrice
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    August 5, 2022

    Hi Sahana,

    The documentation you provided shows the separate "to string" action of the DateTime package. I want to avoid using extra actions.

    I wanted to know if I could bypass this action and instead directly convert a datetime to string in-line in any action, just like numbers and Booleans.

    Thanks,

    Logan

    Automate Everything
    Navigator | Tier 3
    August 5, 2022
    LoganPrice
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    August 5, 2022

    Thank you.

    Automate Everything