Without wanting to take anything away from Neilo's comprehensive answer using jQuery UI for a simple date picker introduces a massive overhead in terms of the size of the extra js and css files needed. I use a much simpler jQuery plugin in my applications. In fact as this question seems to get asked quite a bit I'll write up a blog post on how to implement this at some point this week.