Added SelectionMode as an Enum and implemented SelectionMode.PERIOD to select two dates.