If you have two datepicker in one form and you want that a date of from date shold be minimum date of todate then put following code in Cjuidatepicker widget options array:
'onSelect'=>'js:function(selected) { $("#HostelRoomStatusMaster_room_status_master_end_date").datepicker("option","minDate",selected); }',