如何将日期格式从MM / DD / YYYY更改为DD / MM / YYYY HTML

时间:2019-05-15 10:51:16

标签: php html

我正在尝试从数据库中获取日期并在输入日期中显示它。

当前日期格式存储为1996-10-16

当我在页面中显示它时,它显示为1996年10月16日

我想将其显示为1996年10月16日,有人可以帮助我提出解决方案吗?

                            <input type="date" name="inputdob"  value="<?php echo date("m-d-Y", strtotime(1996-10-16));  ?>" class="form-control" id="exampleInputEmail1" />

0 个答案:

没有答案