Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

mysql date time to html input datetime-local value

<!-- CONVERT MYSQL DATE TIME TO DISPLAY HTML INPUT[datetime-local] VALUE -->
<input type='datetime-local' name='datetime' value='<?php echo date("Y-m-dTH:i", strtotime($details['datetime'])); ?>'>
 
PREVIOUS NEXT
Tagged: #mysql #date #time #html #input
ADD COMMENT
Topic
Name
7+6 =