https://github.com/mbossenbroek/simple-time
(require '[simple-time.core :as t]) (t/format (t/now) "dd:MM:yyyy HH:mm:ss") => "01:05:2014 21:16:27" On Tuesday, April 29, 2014 5:03:01 AM UTC-5, sindhu hosamane wrote: > > How to convert the current date and time to the format i need ? for > example i retrieve current time using (l/local-now) which outputs > > #<DateTime 2014-04-29T11:16:02.420+02:00> > > i want the above output to be converted to format "dd:MM:yyyy HH:mm:ss" > > Should i define my own formatter like below (def custom-formatter > (f/formatter "dd:MM:yyyy HH:mm:ss")) > > But then how to convert it ? Any advice or help would be appreciated .!! > > > -- Sindhu > > > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
