Two soluce for your problem :
data.ExecutingBlock("Problem Date");
string Date = ConstantString(data, "[5/18/2022 , 3/15/2022 , ]");
// BLOCK: Trim
data.ExecutingBlock("Trim");
string trimOutput = Trim(data, $"{Date}");
// BLOCK: Erase
data.ExecutingBlock("Erase");
string parsing_One = ParseBetweenStrings(data, $"{trimOutput}", "[", "]", true, "", "", false);
// BLOCK: First Date
data.ExecutingBlock("First Date ");
string parsing_Two = ParseBetweenStrings(data, $"{parsing_One}", "", ",", true, "", "", false);
// BLOCK: SecondDate
data.ExecutingBlock("SecondDate");
string parsing_Three = ParseBetweenStrings(data, $"{parsing_One}", ",", ",", true, "", "", false);
// BLOCK: Date To Unix Time One
data.ExecutingBlock("Date To Unix Time One");
int FirstDate = DateToUnixTime(data, parsing_Two.AsString(), "M/dd/yyyy");
// BLOCK: Date To Unix Time Two
data.ExecutingBlock("Date To Unix Time Two");
int SecondDate = DateToUnixTime(data, parsing_Three.AsString(), "M/dd/yyyy");```
--------------------------------------------------------------------------------------------------------------------------------------------------------
Second Soluce :
// BLOCK: Problem Date
data.ExecutingBlock("Problem Date");
string Date = ConstantString(data, "[5/18/2022 , 3/15/2022 , ]");
// BLOCK: First
data.ExecutingBlock("First");
string replaceOutput = Replace(data, Date.AsString(), "[", "");
// BLOCK: Two
data.ExecutingBlock("Two");
string Two = Replace(data, $"{replaceOutput}", "]", "");
// BLOCK: Three
data.ExecutingBlock("Three");
string Three = Replace(data, Two.AsString(), ",", "");
// BLOCK: INTO
data.ExecutingBlock("INTO");
string parseOutput = ParseBetweenStrings(data, $"{Three}", "", "", true, "", "", false);
// BLOCK: FirstDate
data.ExecutingBlock("FirstDate");
string DateOne = Substring(data, $"{parseOutput}", 0, 9);
// BLOCK: SecondDate
data.ExecutingBlock("SecondDate");
string DateTwo = Substring(data, $"{parseOutput}", 9, 11);
// BLOCK: End 1
data.ExecutingBlock("End 1");
int dateToUnixTimeOutput = DateToUnixTime(data, DateOne.AsString(), "M/dd/yyyy");
// BLOCK: End 2
data.ExecutingBlock("End 2");
dateToUnixTimeOutput = DateToUnixTime(data, DateTwo.AsString(), "M/dd/yyyy");
--------------------------------------------------------------------------------------------------------------------------------------------------------
You must not copy the code, you must understand it and above all adapt it to your program I tried as much as possible to reproduce your problem and took the same value as you obtain in constant for the tutorial