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
-
Double-click or drag the To string action from the
Datetime node in the Actions
palette.
-
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.
-
Select an option from the Formats list to specify the
predefined format in which you want to store the string value.
-
Select the Custom format to specify a custom format
based on your requirement.
-
Select the string variable that you want to use to store the converted value
from the Assign the output to a variable list.
-
Click Save.