Period selection added.

Since I often need my users to select a start and an end date, I added a period selection feature.