我想要輸入的input type='text'
日期在無掩膜d/m/Y
用面膜日期mysql的輸入文本
當我發表我的形式我使用的語法如下: $Nascimento = date_format($_POST['nascimento'],"Y-m-d");
我的SQL列格式爲: Date
當我提交它給了我下面的錯誤: date_format() expects parameter 1 to be DateTime, string given in /myfile.php on line 191
我該如何解決這個問題?
@Gabriel席爾瓦。你有沒有獲得所需的輸出兄弟.. –
幾乎在那裏。我的SQL輸出中的值是'1969-12-31'。在我的文本輸入是「2016年9月21日」 –