For this example, we will be using three variables
Variable | Type |
_date | String |
_time | String |
_startTime | String |
Routing strategy blocks will look like this
Let’s Start assigning values to the variables Date and Time
For Date there is an inbuilt function that returns date in the Format MM/DD/YYYY
Similarly lets assign value to the Time variable, there is an inbuilt function for this as well.
Format for time is in 24 hour format hh:mm
The last block is to concatenate the date and time into one, this puts us at ease if we are interacting with external systems or database.
Cat[_date,' ',_time]
Looking at the logs we can see the variable _startTime has the value of both Date and Time as intended.