dateField - please help!

does any one know how to use the date picker to select a start date and an end date and then find out how many days are in between???

any help would be massively helpful!!!