Hey, I’ve come across a problem which I thought I’d ask before I
spend the next 5 hours tearing my hair out J Situation: I’ve 2 datefield components, a start
date and an end date. When start date changes, then end date must disable any
dates prior to the start date. For example, I select august 31st on the start date, the end
date should therefore disable all dates prior to the 31st, but allow
me to select 31st. Currently it’s disabling the 31st aswell.
This is due to the fact rangeEnd in the disabledRanges object disables all dates upto and including the specified date. Is there a way of changing my date object to remove 1 day from it? And
it will automatically workout the month/year changes if applicable? One thing I thought about doing was to manually create a new Date(year, month, date) object using startDate.getYear
etc. However in some situations (eg 1st of
the month) I cannot simply do startDate.getDate()-1. Cheers. Steve -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
- [flexcoders] DateField - disabledRanges Steve Cox
- [flexcoders] Re: DateField - disabledRanges Jason R. Weiss
- Re: [flexcoders] DateField - disabledRanges Manish Jethani