Forums

(data substring short code

NickOg 14 Oct, 2018
Is there a short code for selecting part of a value?

eg
{data:someDate.0.4}
or the like???
healyhatman 15 Oct, 2018
Answer
As in if you have a string, only selecting the first {x} characters? No. Just use PHP.

If you only want part of a date, just use {date:format} so for example {date:Y}
NickOg 15 Oct, 2018
Yes - that's it. Maybe it was your comments in that FAQ about date that made me think I had seen a substring shortcode.

Thanks for the reply
This topic is locked and no more replies can be posted.