1条回答 默认 最新
- doujiao2443 2017-10-27 10:01关注
Well.. You can just set the value by using the "value" attribute:
<input type="datetime-local" name="followupon" value="2014-01-02T11:42:13.510">
See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Value for more information
If you want to use the current date, you can use php like so:
<input type="datetime-local" name="followupon" value=<?php echo date('Y-m-d\TH:i:s'); ?>">
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报