On 12 August 2011 23:19, Conrad <drc...@gmail.com> wrote: > Sorry if this has an obvious answer, but there is still only limited > documentation on clojurescript native interop on the net right now, > and none of the code I've seen of runs into this use case... > > How do I create a javascript Date object in Clojurescript? I've tried: > > (Date.) > (window/Date.) > (.now Date) > > I've run out of ideas for what the correct incantation is- Can someone > give me a pointer? Thanks!
After some trial and error, I found this: ClojureScript:cljs.user> (new js/Date) #<Sat Aug 13 2011 00:14:54 GMT+0200 (SAST)> ClojureScript:cljs.user> (js/Date.) #<Sat Aug 13 2011 00:15:01 GMT+0200 (SAST)> -- Michael Wood <esiot...@gmail.com> -- 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