Allow setting the startDate and/or endDate to null

This almost works. There are still a few quirks that need to be worked 
through.