Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
(defn vectorize-date-str [ds]
(let [[date m d y] (re-matches #"(\d{1,2})\/(\d{1,2})\/(\d{4})" ds)]
[y m d]))
(vectorize-date-str "12/02/1975")
;=> ["1975" "12" "02]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment