I create an html form and I used HTML5 datatype
field to insert data.what type of mysql attribute I could use to save the datatime in a db?
<input type="datetime" name="dt" id="dt" value="" placeholder="Date"/>
I create an html form and I used HTML5 datatype
field to insert data.what type of mysql attribute I could use to save the datatime in a db?
<input type="datetime" name="dt" id="dt" value="" placeholder="Date"/>
You'll probably want to use the DATETIME
data type.
Have a loot at the Manual.