Skip to content

Instantly share code, notes, and snippets.

@skatenerd
Created January 23, 2014 17:35
Show Gist options
  • Save skatenerd/8583106 to your computer and use it in GitHub Desktop.
Save skatenerd/8583106 to your computer and use it in GitHub Desktop.
format date
(import 'java.text.SimpleDateFormat)
(def date-format (SimpleDateFormat. "HH:mm:ss"))
(def parsed (.parse date-format "10:22:00"))
(.toString parsed)
; ---> "Thu Jan 01 10:22:00 CST 1970"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment