Expand the datetime-parse function to include 3 letters months
AnsweredAs it is the datetime-parse function does not allow parsing of date format with alphanumerics like: “Thu, 11 Mar 2021 10:44:07 GMT”. While the leading day and trailing GMT are easily dealt with, retrieving the month is difficult without convoluted DTL operations. Adding lettered month to the regular expression tokens would help.
-
Official comment
It is highly unlikely that we'll ever add support for localized names of days. A workaround would be to remove the known day strings with the help of the replace function like this:
["replace", {"Mon, ": "", "Tue, ": "", ...}, "_S.value"]]
Comment actions
Please sign in to leave a comment.
Comments
3 comments