Hi , I didn't verify if that particular formatter comes prepackaged ( I am assuming you are using clj-time since it is not mentioned..) Once you have created your custom formater all you have to do is "unparse"
(clj-time.formatter/unparse <date-time-object> <custom formatter> ) . This is there in the readme.. may be you missed it. Sunil. On Tue, Apr 29, 2014 at 3:33 PM, sindhu hosamane <sindh...@gmail.com> 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 clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > 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 clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com 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 clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.