Select date

now with the code style changes suggested by @JakeWharton