How can I list all dates and parse only the latest one?

I have a list:

[Sat, 06 Dec 2003 14:17:50 +0000, Sat, 06 Dec 2003 14:18:52 +0000, Fri, 26 Oct 2018 02:59:21 +0000]

How can I parse Oct 2018 only?

BLOCK:ConstantList

  value = ["asd,asfsf", "asf", "asfasf", "asfasff"]

  => VAR @constantListOutput

ENDBLOCK

BLOCK:GetListLength

  list = @constantListOutput

  => VAR @getListLengthOutput

ENDBLOCK

getListLengthOutput = getListLengthOutput - 1;

BLOCK:ConstantString

  value = @constantListOutput[getListLengthOutput]

  => VAR @constantStringOutput

ENDBLOCK

I actually want to parse the latest date not just the index number. Sorry for the confusion.

isnt that what this does?

1 Like

Using C# you can also do this

BLOCK:ConstantList
  value = ["a", "b", "c"]
  => VAR @myList
ENDBLOCK

string last = myList.Last();

c remains unchanged
check it out
OpenBullet 2 - 0.2.4 Beta 2022-09-12 03.33.34