SPLITDATE

SPLITDATE is used to split a date string and access the corresponding day, month, and year from the date string.
Edited by: Ayush

Use Cases - When to use this command

Description

SPLITDATE splits a date into day, month and year. The command takes two inputs, a valid date and the format of date. It returns the respective values in the later variables.

Guidelines for Usage:

How to use this command

SPLITDATE command is for node level operations. It can be used in any node as an instruction, except for the root node. It should not be used on the Arrows.

Let's take an example: SPLITDATE '05/25/2023':%m/%d/%Y $month $day $year
Here, $month would hold the value 5, $day would hold the value 25 and $year would hold the value 2023.
If you had a tree variable "$date_str" which was previously initialized to '05/25/2023', the above command could have also been SPLITDATE $date_str:%m/%d/%Y $month $day $year

Examples

Simulated Metadata Editor
processing icon
Analytics API Call Body
Analytics API Response Body