setDate mutates the date and does not return a value.

David

On Thu, Nov 17, 2011 at 3:26 PM, Base <basselh...@gmail.com> wrote:

> HI
>
> I am attempting to manipulate a goog.date.Date object and am a little
> confused on how to call a method on this object in ClojureScript
>
> If I have a date object, how do I , for example, to set the day of the
> month to a different day
>
> Both
>
> (. (goog.date.fromIsoString "2010-12-31") (setDate) 1)
>
> and
>
> (. (goog.date.fromIsoString "2010-12-31") (setDate 1))
>
> yield Undefined.
>
> Any thoughts?  I am sure this is an easy one but I am stuck.
>
> Thanks in advance
>
> Base
>
> --
> 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 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

Reply via email to