I am trying to use expression editor to change string in time format(10:10:00) to the actual time format (T[10:10:00]). The syntax is Time.valueOf(string)but I keep getting errors.
I was able to get this to work in the script editor as follows:
Create one String Variable called StringTime & make the default value "10:10:00 AM". Next
create one Time Variable called RealTime
Using the "Set" Step click on "properties". In the first drop down box select the variable RealTime. In the second drop down box click on ... to launch the Expressions Editor.
When the Expressions Editor launches, type the following:
Click OK. Then OK again.
The Set step should look like:
RealTime = RealTime.valueOf(StringTime)
Also make sure your string value designates either AM or PM such as "10:10:00 AM"
Hope this helps. Please rate all posts!!