我想设置输入日期类型的值,但未设置

I want to set the value of input datetype but it is not set

‖不理想的输出 想要的显示

无法为类型设置 DB 值 = "time"

DB中存储的是2:20
我要 2:20 在编辑屏幕上

但是随着画面出现在屏幕上 如何将数据库时间设置为?
edit.blade.php

<input id="estimated_work_time" type="time" name="estimated_work_time">{{$param->estimated_work_time}}

但是我没有得到我想要的结果

edit.blade.php

<label for="estimated_work_time">Estimated work time</label><br>
<input id="estimated_work_time" type="time" name="estimated_work_time" value="{{$param->estimated_work_time}}"><br>

除了价值我还应该做什么?

在源代码上显示

我也试过了,但是我得到了这个错误

<input id="estimated_work_time" type="time" name="estimated_work_time">{!!date('h:i a',strtotime($param->estimated_work_time)) !!} <br>

错误是这样的
遇到格式不正确的数值

类型时间值应该是 2:35 AM 如果你想 2:20 使用其他类型和一些 php 脚本

好的,这是我收集的,

左侧是 chrome,右侧是 Mozilla

在这两种情况下,您只需要默认将值传递给输入,所以我认为您可以通过像这样放置值来实现所需的输出 XX:XX | 02:30.

<input id="estimated_work_time" type="time" name="estimated_work_time" value="{{ date('h:i',strtotime($param->estimated_work_time)) }}">

这是我为了更好地理解它而做的测试

<?php
   // If i run this
   echo date('h:i','2:30');
   // I will get this error PHP Notice:  A non well formed numeric value encountered


   // So first you need to convert your date or time string into the proper format
   echo date('h:i',strtotime('2:30'));
   // this will return output this : 02:30
?>