Ah! I didn't know about a js namespace- Thanks for figuring that out,
Michael!
On Aug 12, 6:15 pm, Michael Wood wrote:
> On 12 August 2011 23:19, Conrad 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)
> #
> ClojureScript:cljs.user> (js/Date.)
> #
>
> --
> Michael Wood
--
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