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

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

I tried this:

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

H

10条回答
  •  失恋的感觉
    2020-12-25 12:23

    You can use

    date('Y-m-d\TH:i'); //Example result: '2017-01-01T01:01'
    

    if use \T instead of T (not working)

    date('Y-m-dTH:i'); //Example result: '2017-01-01UTC01:01'
    

提交回复
热议问题