Le faltan espacios entre los atributos (id y value ) y faltan comillas alrededor del value atributo:
<td>
<input type='datetime-local' id='txt_dateid_" . $i . "' value='" . $myFormatForView . "' disabled>
</td>
Nota:para una mejor lectura he sangrado input en td y coloque allí espacios opcionales alrededor de los puntos . .