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

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

I tried this:

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

H

10条回答
  •  天涯浪人
    2020-12-25 12:42

    None of the above solutions worked for me as of 2019 using Google Chrome Version 78.0.3904.70 (Official Build) (64-bit)

    What worked for me is.

    
    

    As you can see the format is 2017-06-13T13:00 or Y-m-dTH:i.

    As of PHP you can do like.

    
    

    Hope this will save someone's time. :)

提交回复
热议问题