-
-
Save bhenry/0339a85497a2076275e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn display-date [d] | |
"takes a db date and turns it into a format easily entered/read" | |
(str-join " " [(str-join "-" (map pad-to-2 | |
[(+ 1900 (.getYear d)) | |
(+ 1 (.getMonth d)) | |
(.getDate d)])) | |
(str-join ":" (map pad-to-2 | |
[(.getHours d) | |
(.getMinutes d) | |
(.getSeconds d)]))])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment