yeah, I took that out in the last version. Thanks

On 9/8/05, Philippe Maegerman <[EMAIL PROTECTED]> wrote:
> You added 1 to the month for the display, however you need to substrat that 
> value later when creating your new date:
> 
> daDate.selectedDate = new Date(cYear,cMonth-1,cDay);
> 
> Cheers,
> 
> Philippe
> 
> -----Original Message-----
> From: flexcoders@yahoogroups.com on behalf of Greg Morphis
> Sent: Thu 8/09/2005 21:12
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: modifying the datefield object...
> 
> Well, I've gotten this far...
>       function displayDate(date)
>       {
>          var cMonth;
>          var cYear;
>          var cDay;
>          var dayNum;
>             var tempDate;
> 
>          cMonth = (date.getMonth()) + 1;
>          cYear = date.getFullYear();
>          cDay = date.getDate();
>          dayNum = date.getDay();
>             if(dayNum != 6) {
>                   cDay = (date.getDate()) + (6 - dayNum);
>             }
>             fooDate.text = ("Year:" + cYear + " Month:" + cMonth + " Day:" + 
> cDay);
>             daDate.selectedDate = new Date(cYear,cMonth,cDay);
> 
>       }
> 
> 
> However daDate doesnt show the value of fooDate, it remains showing
> whatever I click on.
> For example; I click on Sept 13th 2005, the label shows the correct
> value of "Year:2005 Month:9 Day:17" or Sept 17th 2005, however the
> datefield value remains Sept 13th 2005.
> 
> Livedocs says it accepts a date object, is that not one?
> "daDate.selectedDate = new Date(cYear,cMonth,cDay);" ??
> 
> Thanks!
> 
> 
> 
> 
> 
> On 9/8/05, Greg Morphis <[EMAIL PROTECTED]> wrote:
> > I've found that I can use this to get the date....
> >  change="displayDate(event.target.selectedDate)"
> >
> >
> >
> >
> >
> > On 9/8/05, Greg Morphis <[EMAIL PROTECTED]> wrote:
> > > Is it possible to capture/modify the value that shows in the textbox
> > > of the datefield object?
> > > I've tried .value, .text and looked at the livedocs (didnt see .value
> > > or .text or anything usable).
> > > What I'm trying to do is make it to where if someone clicks on a date
> > > (9/20/2005) then the date that shows is that week's Saturday
> > > (9/24/2005).
> > > The easiest way of doing this I found is just using
> > > disabledDays="[0,1,2,3,4,5]" to disable all of the days except
> > > Saturday, which works fine, no overhead, etc.. The user would just
> > > select the Saturday that applies.
> > > But is there a way I can pass that selected value to an actionscript
> > > function, get that week's Saturday and pass it back to the DateField?
> > > From the looks of it it would be difficult, you'd have to parse the
> > > date shown ie 20 Sep 2005 to get the day, month, year and then preform
> > > the fuction to get the following Saturday 9/24/2005 and then parse it
> > > back to the format Flex takes 24 Sep 2005 and lastly populate the text
> > > box with that value.
> > > What are your ideas?
> > >
> > >
> > > --
> > > Auxilium meum a Domino
> > >
> >
> >
> > --
> > Auxilium meum a Domino
> >
> 
> 
> --
> Auxilium meum a Domino
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> 
> 
> 
> ________________________________
> 
> YAHOO! GROUPS LINKS
> 
> 
>         *        Visit your group "flexcoders 
> <http://groups.yahoo.com/group/flexcoders> " on the web.
> 
> *        To unsubscribe from this group, send an email to:
>          [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> 
> *        Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service 
> <http://docs.yahoo.com/info/terms/> .
> 
> 
> ________________________________
> 
> 
> 
> ------------------------------------------------------------------
> **STATEMENT OF CONFIDENTIALITY**
> 
> This e-mail and any attached files are confidential and intended solely for 
> the use of the individual to whom it is addressed. If you have received this 
> email in error please send it back to the person that sent it to you. Any 
> views or opinions presented are solely those of author and do not necessarily 
> represent those the Emakina Company. Unauthorized publication, use, 
> dissemination, forwarding, printing or copying of this email and its 
> associated attachments is strictly prohibited.
> 
> We also inform you that we have checked that this message does not contain 
> any virus but we decline any responsability in case of any damage caused by 
> an a non detected virus.
> ------------------------------------------------------------------
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 


-- 
Auxilium meum a Domino


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to