dialog with datepicker

dialog with datepicker

Hi,
 
I have a dialog in which i need a few datepickers and also date validation. How do i do this? I've tried but the datepicker seems to end up behind the dialog.
 
Thanks!
 
/Kris