hah, ok, I feel stupid now
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Slik Jay
Sent: Friday, March 05, 2010 5:12 PM
To: [email protected]
Subject: Re: [Moo] Date Bug ?
today.set('day', 1); // ?
On Fri, Mar 5, 2010 at 11:58 PM, hazlema <[email protected]> wrote:
> I'm using the more extensions for Date and found something
> interesting:
>
> today = Date.parse('3/5/2010');
> today.set("date") = 1;
>
> also tried:
> today.set("day") = 1;
>
> The docs suggest you are able to reset the date:
>
> All of the native date methods work with set. These are: "Date",
> "FullYear", "Hours", "Milliseconds", "Minutes", "Month", "Seconds",
> "Time", "UTCDate", "UTCFullYear", "UTCHours", "UTCMilliseconds",
> "UTCMinutes", "UTCMonth", "UTCSeconds"
>