How to return only the first value in field with multiple values?

බැලීම් 33
පළමු නොකියවූ පණිවිඩය දක්වා මඟ හරින්න

si

නොකියවූ,
2019 ජූලි 2, 18.24.552019-07-02
සිට TiddlyWiki
I have a field that contains a list of several dates separated by spaces. Is there a way to return only the first date?

TonyM

නොකියවූ,
2019 ජූලි 2, 18.32.232019-07-02
සිට TiddlyWiki
Si,

Space is a normal delimiter so using the enlist operator should separate each of the dates, and you can use the [[first operator|https://tiddlywiki.com/#first%20Operator]] and other order operators to do this kind of manipulation.

Tony

Mark S.

නොකියවූ,
2019 ජූලි 2, 18.33.542019-07-02
සිට TiddlyWiki
I'm not sure what you mean by "return", but in a list filter you could have

<$list filter="[enlist{!!dates}nth[1]]"/>

Where "dates" is a field containing your date items. This will only work if your dates are in a format that does not contain space (e.g. something like 2016-02-02)

Good luck
සියල්ලට පිළිතුරු දෙන්න
කර්තෘට පිළිතුරු දෙන්න
ඉදිරියට යවන්න
නව පණිවිඩ 0