How to set a value for the input type 'datetime-local'?

后端 未结 10 1301
猫巷女王i
猫巷女王i 2020-12-25 11:59

I tried this:

\" class=\"date\" name=\"start\" REQUIRED>

H

10条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-25 12:40

    This will convert datetime from database to datetime-local

    str_replace(" ","T",substr_replace($string ,"", -3))

提交回复
热议问题