Sure, no problem, glad it helped.
Again, the key item here - when querying against a DateTime column, using '20130917' is the same as saying '20130917 at midnight'. So people need to be careful when using it for the ending value of a date range, otherwise they wind up getting fewer rows than expected.