Month starts from 0 to 11. i.e. January is 0th month and December is
11th.

HTH,

-Ravi

On May 7, 6:34 pm, moshe <sharon.mo...@gmail.com> wrote:
> Hi All
>
> I am setting date to the same date + 0 and being given wrong month
>
>   var d:Date = new Date();
>   d.setDate(sDate.getDate()+i);
>
> sDate = {day=7,month=3,year=2009}
> d = {day=7,month=4,year=2009}
>
> moshe
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to