Date field component

does any one know how to use the date field component to select 2 dates and then work out how many days are in between the 2 dates??

I have looked through the flash stuff but it only briefly goes through it???