Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/270.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 将HTML日期转换为Oracle日期_Php_Oracle_Date - Fatal编程技术网

Php 将HTML日期转换为Oracle日期

Php 将HTML日期转换为Oracle日期,php,oracle,date,Php,Oracle,Date,我有一个html输入类型日期,我想插入到oracle日期中。如何转换为oracle日期?到目前为止我有这个 <label><span>DUE DATE</span> <input id="duedate" type="date" name="duedate" size="10" maxlength="10" value="" /> </label> <label><span>&

我有一个html输入类型日期,我想插入到oracle日期中。如何转换为oracle日期?到目前为止我有这个

<label><span>DUE DATE</span>
    <input id="duedate" type="date" name="duedate" size="10" maxlength="10" value="" />         
</label>

<label><span>&nbsp;</span>
    <input class ="button" type="submit" name="submit" value="Submit!" />
</label>
</form>
截止日期

假设
dd-MMM-yy
格式,那么类似的东西应该可以工作:

oci_bind_by_name($s, ":dueDate", strtoupper(date('d-M-y', strtotime($_POST['duedate']))));
要在Oracle中将“字符串”日期放入“日期”变量类型,需要使用To_date()pl/sql命令:

捕获到错误:(致命错误:在第91行的C:\xampp\htdocs\WeltesInformationCenter\subc_assignment.php中调用未定义的函数strotupper(),抱歉,输入错误。
strotupper()
oci_bind_by_name($s, ":dueDate", strtoupper(date('d-M-y', strtotime($_POST['duedate']))));
TO_DATE($_POST['duedate'], 'mm/dd/yyyy')