Given the string
"2008-05-06 13:29", parse it as a date representing 6th March, 2008 1:29:00pm in the local time zone.
clojure (.. (SimpleDateFormat. "yyyy-MM-dd HH:mm")
(parse "2008-05-06 13:29"))
(import '(java.text SimpleDateFormat))
(.. (SimpleDateFormat. "yyyy-MM-dd HH:mm")
(parse "2008-05-06 13:29"))
Submit a new solution for
clojure
There are 19 other solutions in
additional languages (
cpp,
csharp,
erlang,
fantom ...)