Implements the different rendering modes for the DateRange control.