我正在使用angular和php构建项目。一切都很好,除了" date"选项。当"输入类型="文本" =>一切正常,只需将日期设置为" 2016-16-8"。但我想把它改成" date"选择约会,但我不知道为什么这不起作用。有人可以帮忙吗?
HTML code:
<div class="form-group">
<label for="order_date"> תאריך:</label>
<input type="date" id="order_date" name="order_date" class="form-control" placeholder="*שדה חובה*" ng-model="order.order_date" />
</div>
PHP:
$sql_statement = "Insert into orders (order_type, date,total_payment , status, technical_data, refer_customer_id) values ('"
.$data->data->order_type ."','" .$data->data->order_date ."'," .$data->data->total_payment .",'"
.$data->data->status ."','" .$data->data->technical_data ."'," .$data->data->refer_customer_id .")" ;