Data mysql wyświetlanie wartości wejściowej HTML DATETIME-Local

<!-- CONVERT MYSQL DATE TIME TO DISPLAY HTML INPUT[datetime-local] VALUE -->
<input type='datetime-local' name='datetime' value='<?php echo date("Y-m-d\TH:i", strtotime($details['datetime'])); ?>'>
Nar