diff options
Diffstat (limited to 'src/mulk/benki/util.clj')
-rw-r--r-- | src/mulk/benki/util.clj | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mulk/benki/util.clj b/src/mulk/benki/util.clj index d61eca4..18c3607 100644 --- a/src/mulk/benki/util.clj +++ b/src/mulk/benki/util.clj @@ -5,7 +5,8 @@ noir.core) (:require [noir.session :as session] [noir.request :as request] - [noir.response :as response])) + [noir.response :as response]) + (:import [java.text DateFormat])) (def fmt clojure.pprint/cl-format) @@ -57,3 +58,7 @@ (defn redirect [x] {:status 302, :headers {"Location" x}, :body ""}) + +(defn format-date [x] + (.format (DateFormat/getDateTimeInstance DateFormat/FULL DateFormat/FULL) + x)) |