How to convert datetime to special format?

is it possible to optimize following?
substring(string("2024-03-26T22:16:33.931Z"), 1, 16)
I need to get 2024-03-26T22:16 and I don’t like that I need to write 1,16…

No, currently, there is no function to return a date-time value in a given format.

We have an open feature request here.

Alternative to the substring function, you could access the components of the date-time value. See the example here.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.