Skip to main content
Question

Convert Datetime to String Inline

  • August 4, 2022
  • 4 replies
  • 1078 views

LoganPrice
Most Valuable Pathfinder
Forum|alt.badge.img+14

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

Forum|alt.badge.img+12

LoganPrice
Most Valuable Pathfinder
Forum|alt.badge.img+14
  • Author
  • 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


Forum|alt.badge.img+6
  • Navigator | Tier 3
  • August 5, 2022

LoganPrice
Most Valuable Pathfinder
Forum|alt.badge.img+14
  • Author
  • Most Valuable Pathfinder
  • August 5, 2022

Thank you.