Expand the datetime-parse function to include 3 letters months

Answered

Comments

3 comments

  • Official comment
    Geir Ove Grønmo

    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 Permalink
  • Maximilien Sauban

    How about the month? The day wasn't really an issue.

    0
    Comment actions Permalink
  • Geir Ove Grønmo

    How about nesting the replace calls like this, so you first strip off the days and then the months?

    ["replace", {"Jan ": "", "Feb ": "", ...}, ["replace", {"Mon, ": "", "Tue, ": "", ...}, "_S.value"]]
    0
    Comment actions Permalink

Please sign in to leave a comment.