Using the To string action

Use the To string action to convert a datetime value to a string value. This action enables you to select a predefined format or specify a custom format for the output value.

You can select a predefined format for datetime or provide a custom format based on your requirements. See Datetime formats.

To convert a datetime value to string, do the following:

Procedure

  1. Double-click or drag the To string action from the Datetime node in the Actions palette.
  2. Select an option from the Source date and time variable list to specify the variable that contains the datetime value that you want to convert to a string value.
  3. Select an option from the Formats list to specify the predefined format in which you want to store the string value.
  4. Select the Custom format to specify a custom format based on your requirement.
  5. Select the string variable that you want to use to store the converted value from the Assign the output to a variable list.
  6. Click Save.