Added function for select values for dates
Added documentation