In your css use
'.ui-datepicker{ z-index: 9999 !important;}
'
Here 9999 can be replaced to whatever layer value you want your datepicker available.
Neither any code is to be commented nor adding 'position:relative;
' css on input elements. Because increasing the z-index of input elements will have effect on all input type buttons, which may not be needed for some cases.