Multiple datepicker questions

Multiple datepicker questions

I need to:

Limit datepicker so dates in the future cannot be selected.

Make it so I can get the value from datepicker and insert it into text.

Make it so when I click the datepicker, it hides it and shows a second datepicker.

Help!!!  Please?!?!?!