Justin,

I think it's correct... it sets the new range end date for the first
half of the now split range. As both the start and the end date fall
within the range, it needs to be split in two: the first one from the
range start to the day before the start date (which is the one we're
looking at) and the second half from the day after the end date to the
range end date.

EdB



On Wed, May 8, 2013 at 12:33 PM, Justin Mclean <jus...@classsoftware.com> wrote:
> Hi,
>
>> Just because I can't let something like this go...
>
> It was particularly special bit of code wasn't it  :-)
>
> I forgot to mention one of my fav lines:
>       _selectedRanges[n].rangeEnd = incrementDate(startDate,-1);
>
> (Which I'm fairly certain is incorrect)
>
>> I wasn't able to test this, so mileage may vary ;-)
> I'll give it a go and test it.
>
> Thanks for the contribution.
>
> Justin



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Reply via email to