--- In flexcoders@yahoogroups.com, "Mark" <[EMAIL PROTECTED]> wrote:
>
> I'm getting dates in my XML formatted like this:
>
> 2008/12/20
>
> In some cases in my Flex app I need to add 1 day to that date.  What
> is the best way to do that?  Right now I'm working it out this way:
>
> s = chartDates.getItemAt(0).globalDeadline;
> a = s.split("/");
> newDate = a[0]+"/"+a[1]+"/"+(Number(a[2])+1);
>
> But I'm pretty sure this isn't right.
>
> Can someone help out with the code?
>
> Thanks
> -M
>


Reply via email to