Yes,
You can add 1 after parsing your month value to Int.using
parseInt(varMonth).

On Mon, Oct 13, 2008 at 1:36 PM, Arun <[EMAIL PROTECTED]> wrote:

>
> I have a small problem now in relation to getting the months.
>
> When I retrieve the date in this way, the month is always is -1, as
> the month is 0-11,
>  var returnDate:String = dts.getFullYear()+"-"+dts.getMonth()
> +"-"+dts.getDate();
>
> Is is possible to append +1 to get the correct month?
>
> Someone could provide a solution.
>
> Thanks
>
>
> On Oct 13, 12:18 pm, Arun <[EMAIL PROTECTED]> wrote:
> > Ah, yes I managed to get the time as well, It was quite simple
> >
> >  var arr:Array = str.split(' ');
> >  var arr2:Array = String(arr[0]).split('-');
> >  var Time:String = arr[1]; // time
> >
> > Thanks
> >
> > Arun
> >
> > On Oct 13, 10:27 am, Arun <[EMAIL PROTECTED]> wrote:
> >
> > > Hi
> >
> > > I could manage to get the date in YYYY-MM-DD format, however my
> > > problem is to extract the minutes and seconds.
> > > Here is the code I used.
> >
> > > var str = "08-Oct-2008 17:15";
> > > var arr:Array = str.split(' ');
> > > var arr2:Array = String(arr[0]).split('-');
> > > var dts:Date = new Date(String(arr2[0]+ " "+ arr2[1]+" "+arr2[2]));
> > > Alert.show(" "+dts.getFullYear()+"-"+dts.getMonth()
> > > +"-"+dts.getDate());
> >
> > > I am not sure how can I extract the last part, 17:15.
> >
> > > Thanks
> >
> > > Arun
> >
> > > On Oct 11, 1:35 am, "Venkat Viswanathan" <[EMAIL PROTECTED]>
> > > wrote:
> >
> > > > Hi Arun,
> >
> > > > I dont think there is any inbuilt class to handle this. You will have
> to
> > > > manually split the string and apply your own logic for converting
> this
> > > > string to date.
> >
> > > > Regards,
> > > > Venkatwww.venkatv.com <http://venkatwww.venkatv.com/>
> >
> > > > On Fri, Oct 10, 2008 at 1:23 PM, Arun <[EMAIL PROTECTED]> wrote:
> >
> > > > > Please do not change the subject.
> >
> > > > > I am looking for a solution.
> >
> > > > > On Oct 10, 3:48 pm, Arun <[EMAIL PROTECTED]> wrote:
> > > > > > Why is the discussion subject changed? I am looking for a
> solution
> > > > > > here.
> >
> > > > > > On Oct 10, 3:28 pm, "Natwar Garg" <[EMAIL PROTECTED]>
> wrote:
> >
> > > > > > > Hello All,
> >
> > > > > > > I need to know (purpose/ how to use/ advantage of using) about
> Ariaware
> > > > > RIA
> > > > > > > Platform, Please let me know is there any other alternative
> (framework/
> > > > > > > platforms) available for the same purpose.
> >
> > > > > > > If yes then please give me the names/links and suggest which
> one is
> > > > > better
> > > > > > > (advantage and disadvantage),
> >
> > > > > > > Venkat / Anand, Please suggest on this if any idea.
> >
> > > > > > > Thanks in Advance
> >
> > > > > > > Regards,
> >
> > > > > > > Natwar Garg
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to